1CURLOPT_NOPROGRESS(3) curl_easy_setopt options CURLOPT_NOPROGRESS(3)
2
3
4
6 CURLOPT_NOPROGRESS - switch off the progress meter
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_NOPROGRESS, long
12 onoff);
13
15 If onoff is to 1, it tells the library to shut off the progress meter
16 completely for requests done with this handle. It will also prevent the
17 CURLOPT_XFERINFOFUNCTION(3) or CURLOPT_PROGRESSFUNCTION(3) from getting
18 called.
19
21 1, meaning it normally runs without a progress meter.
22
24 All
25
27 CURL *curl = curl_easy_init();
28 if(curl) {
29 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
30
31 /* enable progress meter */
32 curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
33
34 /* Perform the request */
35 curl_easy_perform(curl);
36 }
37
39 Always
40
42 Returns CURLE_OK.
43
45 CURLOPT_XFERINFOFUNCTION(3), CURLOPT_PROGRESSFUNCTION(3), CURLOPT_VER‐
46 BOSE(3),
47
48
49
50libcurl 7.64.0 October 09, 2017 CURLOPT_NOPROGRESS(3)