You are here : cpp0curl_easy_cleanup

curl_easy_cleanup() - 0

curl_easy_cleanup - End a libcurl easy handle.
This function must be the last function to call for an easy session. It is the opposite of the curl_easy_init function and must be called with the same handle as input that a curl_easy_init call returned.


Syntax

#include <curl/curl.h>

void curl_easy_cleanup(CURL * handle );


Example

#include <curl/curl.h>

CURL *curl = curl_easy_init();
if(curl) {
  CURLcode res;
  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
  res = curl_easy_perform(curl);

  /* Ends the libcurl easy handle  */
  curl_easy_cleanup(curl);
}


Output / Return Value


Limitations


Alternatives / See Also


Reference

http://curl.haxx.se/libcurl/c/curl_easy_cleanup.html