Lines Matching +full:download +full:- +full:url
21 * SPDX-License-Identifier: curl
25 * Show transfer timing info after download completes.
29 * download data into a chunk of memory instead of storing it in a file.
30 * After successful download we use curl_easy_getinfo() calls to get the
31 * amount of downloaded bytes, the time used for the whole download, and
32 * the average download speed.
33 * On Linux you can create the download test files with:
69 const char *url = URL_1M; in main() local
74 for(argc--, argv++; *argv; argc--, argv++) { in main()
75 if(argv[0][0] == '-') { in main()
80 "\rUsage: %s [-m=1|2|5|10|20|50|100] [-t] [-x] [url]\n", in main()
85 fprintf(stderr, "\r%s %s - %s\n", in main()
106 url = URL_1M; in main()
109 url = URL_2M; in main()
112 url = URL_5M; in main()
115 url = URL_10M; in main()
118 url = URL_20M; in main()
121 url = URL_50M; in main()
124 url = URL_100M; in main()
143 url = *argv; in main()
150 printf("-------------------------------------------------\n"); in main()
164 /* specify URL to get */ in main()
165 curl_easy_setopt(curl_handle, CURLOPT_URL, url); in main()
170 /* some servers do not like requests that are made without a user-agent in main()
173 "libcurl-speedchecker/" CHKSPEED_VERSION); in main()
186 /* check for total download time */ in main()
189 printf("Total download time: %lu.%06lu sec.\n", in main()
192 /* check for average download speed */ in main()
195 printf("Average download speed: %lu kbyte/sec.\n", in main()
214 url, curl_easy_strerror(res)); in main()