Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
48 #include <curl/curl.h>
52 CURL *curl;
84 curl = curl_easy_init();
88 if(curl) {
90 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/examplepost.cgi");
93 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
94 curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
97 res = curl_easy_perform(curl);
104 curl_easy_cleanup(curl);