Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
29 #include <curl/curl.h>
33 CURL *curl;
36 curl = curl_easy_init();
37 if(curl) {
40 /* Remove a header curl would otherwise add by itself */
46 /* Modify a header curl otherwise adds differently */
50 we are then using a semicolon in the string we pass to curl! */
54 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
56 curl_easy_setopt(curl, CURLOPT_URL, "localhost");
57 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
59 res = curl_easy_perform(curl);
66 curl_easy_cleanup(curl);