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 onoff);
12
14 If onoff is to 1, it tells the library to shut off the progress meter
15 completely for requests done with this handle. It will also prevent the
16 CURLOPT_XFERINFOFUNCTION(3) or CURLOPT_PROGRESSFUNCTION(3) from getting
17 called.
18
20 1, meaning it normally runs without a progress meter.
21
23 All
24
26 CURL *curl = curl_easy_init();
27 if(curl) {
28 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
29
30 /* enable progress meter */
31 curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
32
33 /* Perform the request */
34 curl_easy_perform(curl);
35 }
36
38 Always
39
41 Returns CURLE_OK.
42
44 CURLOPT_XFERINFOFUNCTION(3), CURLOPT_PROGRESSFUNCTION(3), CURLOPT_VER‐
45 BOSE(3),
46
47
48
49libcurl 8.0.1 January 02, 2023 CURLOPT_NOPROGRESS(3)