Home | History | Annotate | Download | only in examples

Lines Matching refs:curl

12  * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl;
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX");
54 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "STORE 1 +Flags \\Deleted");
57 res = curl_easy_perform(curl);
66 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "EXPUNGE");
69 res = curl_easy_perform(curl);
78 curl_easy_cleanup(curl);