Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
24 #include <curl/curl.h>
35 CURL *curl;
40 curl = curl_easy_init();
41 if(curl) {
42 curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/");
44 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, wrfu);
46 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
47 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
49 curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
50 curl_easy_setopt(curl, CURLOPT_CERTINFO, 1L);
52 res = curl_easy_perform(curl);
62 res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &ptr.to_info);
80 curl_easy_cleanup(curl);