Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
23 #include <curl/curl.h>
27 CURL *curl;
30 /* http://curl.haxx.se/libcurl/c/curl_easy_init.html */
31 curl = curl_easy_init();
32 if(curl) {
33 /* http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTURL */
34 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/");
35 /* http://curl.haxx.se/libcurl/c/curl_easy_perform.html */
36 res = curl_easy_perform(curl);
41 /* http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */
42 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct);
49 /* http://curl.haxx.se/libcurl/c/curl_easy_cleanup.html */
50 curl_easy_cleanup(curl);