1CURLOPT_HTTP_TRANSFER_DECODIcNuGr(l3_)easy_setopt opCtUiRoLnOsPT_HTTP_TRANSFER_DECODING(3)
2
3
4

NAME

6       CURLOPT_HTTP_TRANSFER_DECODING - HTTP transfer decoding control
7

SYNOPSIS

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

DESCRIPTION

15       Pass  a long to tell libcurl how to act on transfer decoding. If set to
16       zero, transfer decoding will be disabled, if set to  1  it  is  enabled
17       (default).  libcurl  does  chunked  transfer decoding by default unless
18       this option is set to zero.
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_TRANSFER_DECODING, 0L);
32         ret = curl_easy_perform(curl);
33       }
34

AVAILABILITY

36       Added in 7.16.2 Does not work with the hyper backend  (it  will  always
37       have transfer decoding enabled).
38

RETURN VALUE

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

SEE ALSO

44       CURLOPT_HTTP_CONTENT_DECODING(3), CURLOPT_ACCEPT_ENCODING(3),
45
46
47
48libcurl 8.0.1                  January 02, 202C3URLOPT_HTTP_TRANSFER_DECODING(3)
Impressum