Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
26 #include <curl/curl.h>
60 CURL *curl;
69 curl = curl_easy_init();
70 if(curl) {
71 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
73 curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 1L);
74 res = curl_easy_perform(curl);
82 /* Extract the socket from the curl handle - we'll need it for waiting.
86 res = curl_easy_getinfo(curl, CURLINFO_LASTSOCKET, &sockextr);
106 res = curl_easy_send(curl, request, strlen(request), &iolen);
121 res = curl_easy_recv(curl, buf, 1024, &iolen);
132 curl_easy_cleanup(curl);