#include <curl/curl.h> CURL *curl_easy_init( );
Handle to an easy
CURL session. If this function returns
NULL, an unexpected issue occurred and the other
CURL functions cannot be used.
This function must be the first function to call, and it returns a
CURL easy handle that must be used as input to other easy-functions.
curl_easy_init initializes curl and this
call must have a corresponding call to
curl_easy_cleanup when the operation is complete.
curl_global_init was not already called,
curl_easy_init does it automatically.
This may be lethal in multithreaded cases, since
curl_global_init is not thread-safe and it may result in resource issues
because there is no corresponding cleanup. It is strongly advised to not allow this automatic behavior. This is accomplished by manually
For information on how to use this function, see the description of global environment requirements in libcurl.
2013/05/08 Automated cleanup pass.
2012/05/04 Initial version.