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
12       onoff);
13

DESCRIPTION

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

DEFAULT

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

PROTOCOLS

24       All
25

EXAMPLE

27       CURL *curl = curl_easy_init();
28       if(curl) {
29         curl_easy_setopt(curl, CURLOPT_URL, "https://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

AVAILABILITY

39       Always
40

RETURN VALUE

42       Returns CURLE_OK.
43

SEE ALSO

45       CURLOPT_XFERINFOFUNCTION(3),  CURLOPT_PROGRESSFUNCTION(3), CURLOPT_VER‐
46       BOSE(3),
47
48
49
50libcurl 7.76.1                 November 04, 2020         CURLOPT_NOPROGRESS(3)
Impressum