Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
curl_easy_init(3) | libcurl Manual | curl_easy_init(3) |
NAME
curl_easy_init - Start a libcurl easy sessionDESCRIPTION
This function must be the first function to call, and it returns a CURL easy handle that you must use as input to other functions in the easy interface. This call MUST have a corresponding call to curl_easy_cleanup(3) when the operation is complete.EXAMPLE
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
If this function returns NULL, something went wrong and you cannot use the other curl functions.SEE ALSO
curl_easy_cleanup(3), curl_global_init(3), curl_easy_reset(3), curl_easy_perform(3)May 17, 2022 | libcurl 7.84.0 |