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;
36 curl = curl_easy_init();
37 if(curl) {
39 curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L);
42 curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 120L);
45 curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, 60L);
47 curl_easy_setopt(curl, CURLOPT_URL, "https://curl.se/");
49 res = curl_easy_perform(curl);
51 curl_easy_cleanup(curl);