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

NAME

6       CURLOPT_VERBOSE - set verbose mode on/off
7

SYNOPSIS

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

DESCRIPTION

14       Set  the onoff parameter to 1 to make the library display a lot of ver‐
15       bose information about its operations on this handle. Very  useful  for
16       libcurl and/or protocol debugging and understanding. The verbose infor‐
17       mation  will  be  sent  to  stderr,  or  the  stream  set   with   CUR‐
18       LOPT_STDERR(3).
19
20       You hardly ever want this set in production use, you will almost always
21       want this when you debug/report problems.
22
23       To also get all the protocol data sent and received, consider using the
24       CURLOPT_DEBUGFUNCTION(3).
25

DEFAULT

27       0, meaning disabled.
28

PROTOCOLS

30       All
31

EXAMPLE

33       CURL *curl = curl_easy_init();
34       if(curl) {
35         curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
36
37         /* ask libcurl to show us the verbose output */
38         curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
39
40         /* Perform the request */
41         curl_easy_perform(curl);
42       }
43

AVAILABILITY

45       Always
46

RETURN VALUE

48       Returns CURLE_OK
49

SEE ALSO

51       CURLOPT_STDERR(3), CURLOPT_DEBUGFUNCTION(3), CURLOPT_ERRORBUFFER(3),
52
53
54
55libcurl 7.69.1                 December 04, 2019            CURLOPT_VERBOSE(3)
Impressum