1CURLOPT_NOPROGRESS(3)      curl_easy_setopt options      CURLOPT_NOPROGRESS(3)
2
3
4

NAME

6       CURLOPT_NOPROGRESS - switch off the progress meter
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_NOPROGRESS, long onoff);
12

DESCRIPTION

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

DEFAULT

20       1, meaning it normally runs without a progress meter.
21

PROTOCOLS

23       All
24

EXAMPLE

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

AVAILABILITY

38       Always
39

RETURN VALUE

41       Returns CURLE_OK.
42

SEE ALSO

44       CURLOPT_XFERINFOFUNCTION(3), CURLOPT_PROGRESSFUNCTION(3),  CURLOPT_VER‐
45       BOSE(3),
46
47
48
49libcurl 7.85.0                   May 17, 2022            CURLOPT_NOPROGRESS(3)
Impressum