Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
28 #include <curl/curl.h>
31 static CURL *curl;
43 res = curl_easy_getinfo(curl, CURLINFO_TLS_SESSION, &info);
86 curl = curl_easy_init();
87 if(curl) {
88 curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/");
90 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, wrfu);
92 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
93 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
95 curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
97 (void) curl_easy_perform(curl);
99 curl_easy_cleanup(curl);