Lines Matching refs:CURL
12 * are also available at https://curl.haxx.se/docs/copyright.html.
24 #include <curl/curl.h>
43 CURL *curl;
54 curl = curl_easy_init();
55 if(curl) {
57 curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.example.com/");
58 curl_easy_setopt(curl, CURLOPT_WRITEDATA, ftpfile);
61 curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response);
62 curl_easy_setopt(curl, CURLOPT_HEADERDATA, respfile);
63 res = curl_easy_perform(curl);
70 curl_easy_cleanup(curl);