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,
58 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
63 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
64 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
72 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem");
77 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
80 res = curl_easy_perform(curl);
88 curl_easy_cleanup(curl);