Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
curl_easy_perform(3) | libcurl | curl_easy_perform(3) |
NAME
curl_easy_perform - perform a blocking file transferDESCRIPTION
curl_easy_perform(3) performs a network transfer in a blocking manner and returns when done, or earlier if it fails. For non-blocking behavior, see curl_multi_perform(3).EXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
}
AVAILABILITY
AlwaysRETURN VALUE
CURLE_OK (0) means everything was OK, non-zero means an error occurred as <curl/curl.h> defines - see libcurl-errors(3). If the CURLOPT_ERRORBUFFER(3) was set with curl_easy_setopt(3) there is a readable error message stored in the error buffer when non-zero is returned.SEE ALSO
curl_easy_init(3), curl_easy_setopt(3), curl_multi_add_handle(3), curl_multi_perform(3), libcurl-errors(3)December 4, 2023 | libcurl 8.5.0 |