Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
29 #include <curl/curl.h>
33 CURL *curl;
42 /* instead of curl.se:443, it will resolve and use example.com:443 but in
43 other aspects work as if it still is curl.se */
45 "curl.se:443:example.com:443");
47 curl = curl_easy_init();
48 if(curl) {
49 curl_easy_setopt(curl, CURLOPT_CONNECT_TO, host);
50 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
51 curl_easy_setopt(curl, CURLOPT_URL, "https://curl.se/");
56 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
61 res = curl_easy_perform(curl);
64 curl_easy_cleanup(curl);