Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
31 #include <curl/curl.h>
74 CURL *curl;
87 curl = curl_easy_init();
88 if(curl) {
93 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
95 curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 1L);
96 res = curl_easy_perform(curl);
103 /* Extract the socket from the curl handle - we will need it for
105 res = curl_easy_getinfo(curl, CURLINFO_ACTIVESOCKET, &sockfd);
121 res = curl_easy_send(curl, request + nsent_total,
148 res = curl_easy_recv(curl, buf, sizeof(buf), &nread);
170 curl_easy_cleanup(curl);