1CURLOPT_HTTP_CONTENT_DECODINcGu(r3l)_easy_setopt optCiUoRnLsOPT_HTTP_CONTENT_DECODING(3)
2
3
4

NAME

6       CURLOPT_HTTP_CONTENT_DECODING - enable/disable HTTP content decoding
7

SYNOPSIS

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

DESCRIPTION

15       Pass  a  long to tell libcurl how to act on content decoding. If set to
16       zero, content decoding will be disabled. If set to  1  it  is  enabled.
17       Libcurl  has  no  default content decoding but requires you to use CUR‐
18       LOPT_ACCEPT_ENCODING(3) for that.
19

DEFAULT

21       1
22

PROTOCOLS

24       HTTP
25

EXAMPLE

27       CURL *curl = curl_easy_init();
28       if(curl) {
29         CURLcode ret;
30         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
31         curl_easy_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, 0L);
32         ret = curl_easy_perform(curl);
33       }
34

AVAILABILITY

36       Added in 7.16.2
37

RETURN VALUE

39       Returns CURLE_OK if the option is supported,  and  CURLE_UNKNOWN_OPTION
40       if not.
41

SEE ALSO

43       CURLOPT_STDERR(3), CURLOPT_DEBUGFUNCTION(3), CURLOPT_ACCEPT_ENCODING(3)
44
45
46
47libcurl 7.61.1                   May 31, 2017 CURLOPT_HTTP_CONTENT_DECODING(3)
Impressum