Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
24 #include <curl/curl.h>
28 CURL *curl;
33 curl = curl_easy_init();
34 if(curl) {
35 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
36 curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
39 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
42 res = curl_easy_perform(curl);
50 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/docs/");
53 res = curl_easy_perform(curl);
60 curl_easy_cleanup(curl);