Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
26 #include <curl/curl.h>
45 CURL *curl;
56 curl = curl_easy_init();
57 if(curl) {
59 curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.example.com/");
60 curl_easy_setopt(curl, CURLOPT_WRITEDATA, ftpfile);
63 curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response);
64 curl_easy_setopt(curl, CURLOPT_HEADERDATA, respfile);
65 res = curl_easy_perform(curl);
72 curl_easy_cleanup(curl);