Home | History | Annotate | Download | only in examples

Lines Matching defs:curl

12  * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
40 CURL *curl;
43 curl = curl_easy_init();
44 if(curl) {
46 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
47 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
51 curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1");
62 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
70 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
76 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
79 res = curl_easy_perform(curl);
87 curl_easy_cleanup(curl);