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");
50 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
57 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
62 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
63 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
71 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem");
76 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
79 res = curl_easy_perform(curl);
87 curl_easy_cleanup(curl);