Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
27 #include <curl/curl.h>
46 CURL *curl;
54 curl = curl_easy_init();
55 if(curl) {
56 curl_easy_setopt(curl, CURLOPT_URL, ftpurl);
58 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
60 curl_easy_setopt(curl, CURLOPT_FILETIME, 1L);
61 curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, throw_away);
62 curl_easy_setopt(curl, CURLOPT_HEADER, 0L);
64 /* curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); */
66 res = curl_easy_perform(curl);
69 /* https://curl.se/libcurl/c/curl_easy_getinfo.html */
70 res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
75 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T,
83 fprintf(stderr, "curl told us %d\n", res);
87 curl_easy_cleanup(curl);