Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
29 /* Note that this example currently requires curl to be linked against
34 #include <curl/curl.h>
38 static CURL *curl;
50 res = curl_easy_getinfo(curl, CURLINFO_TLS_SESSION, &info);
93 curl = curl_easy_init();
94 if(curl) {
95 curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/");
97 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, wrfu);
99 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
100 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
102 curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
104 (void) curl_easy_perform(curl);
106 curl_easy_cleanup(curl);