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");
52 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "CREATE FOLDER");
55 res = curl_easy_perform(curl);
63 curl_easy_cleanup(curl);