Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
23 #include <curl/curl.h>
33 CURL *curl;
36 curl = curl_easy_init();
37 if(curl) {
39 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
40 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
43 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX");
46 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "COPY 1 FOLDER");
53 res = curl_easy_perform(curl);
61 curl_easy_cleanup(curl);