Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
31 #include <curl/curl.h>
52 CURL *curl;
64 /* get a curl handle */
65 curl = curl_easy_init();
66 if(curl) {
72 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
75 curl does strlen to get the size. */
76 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, olivertwist);
83 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
87 curl_easy_setopt(curl, CURLOPT_URL, url);
90 res = curl_easy_perform(curl);
97 curl_easy_cleanup(curl);