Sortix 1.1dev ports manual
This manual documents Sortix 1.1dev ports. 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 sessionSYNOPSIS
#include <curl/curl.h>DESCRIPTION
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.RETURN VALUE
If this function returns NULL, something went wrong and you cannot use the other curl functions.EXAMPLE
CURL *curl = curl_easy_init(); if(curl) { CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); res = curl_easy_perform(curl); curl_easy_cleanup(curl); }
SEE ALSO
curl_easy_cleanup(3), curl_global_init(3), curl_easy_reset(3), curl_easy_perform(3)February 3, 2016 | libcurl 7.69.0 |