Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
25 #include <curl/curl.h>
44 CURL *curl;
52 curl = curl_easy_init();
53 if(curl) {
54 curl_easy_setopt(curl, CURLOPT_URL, ftpurl);
56 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
58 curl_easy_setopt(curl, CURLOPT_FILETIME, 1L);
60 curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, throw_away);
61 curl_easy_setopt(curl, CURLOPT_HEADER, 0L);
63 /* curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); */
65 res = curl_easy_perform(curl);
68 /* http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */
69 res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
74 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &filesize);
79 fprintf(stderr, "curl told us %d\n", res);
83 curl_easy_cleanup(curl);