Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
30 #include <curl/curl.h>
41 CURL *curl;
46 curl = curl_easy_init();
47 if(curl) {
48 curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/");
50 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, wrfu);
52 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
53 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
55 curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
56 curl_easy_setopt(curl, CURLOPT_CERTINFO, 1L);
58 res = curl_easy_perform(curl);
63 res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &certinfo);
81 curl_easy_cleanup(curl);