Home | History | Annotate | Download | only in examples

Lines Matching defs:curl

12  * are also available at https://curl.haxx.se/docs/copyright.html.
28 #include <curl/curl.h>
32 CURL *curl;
37 curl = curl_easy_init();
38 if(curl) {
39 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
40 curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
43 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
46 res = curl_easy_perform(curl);
54 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/docs/");
57 res = curl_easy_perform(curl);
64 curl_easy_cleanup(curl);