Home | History | Annotate | Download | only in examples

Lines Matching defs:curl

12  * are also available at https://curl.haxx.se/docs/copyright.html.
27 #include <curl/curl.h>
31 CURL *curl;
34 curl = curl_easy_init();
35 if(curl) {
38 /* Remove a header curl would otherwise add by itself */
44 /* Modify a header curl otherwise adds differently */
48 we're then using a semicolon in the string we pass to curl! */
52 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
54 curl_easy_setopt(curl, CURLOPT_URL, "localhost");
55 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
57 res = curl_easy_perform(curl);
64 curl_easy_cleanup(curl);