curl-library
Re: curl-library Digest, Vol 90, Issue 46
Date: Sun, 17 Feb 2013 12:24:45 +0100
On 2/17/2013 12:00, curl-library-request_at_cool.haxx.se wrote:
> On Sat, 16 Feb 2013, Giuseppe Attardi wrote:
>> >I want to be able to request for gzip content encoding, but do not want curl
>> >to decode it for me, since I want to store the content encoded.
> You would probably do it one of two ways:
>
> 1 - ask for the content encoded "manually" without using
> CURLOPT_ACCEPT_ENCODING. Just send the plain header yourself.
>
> 2 - Use CURLOPT_ACCEPT_ENCODING but switch off content decoding by setting
> CURLOPT_HTTP_CONTENT_DECODING to 0.
>
> -- / daniel.haxx.se
Thanks for the answer.
I suggest then to fix the documentation for the
CURLOPT_HTTP_CONTENT_DECODING option which relates it to the obsolete
option CURLOPT_ENCODING:
Libcurl has no default content decoding but requires you to use
CURLOPT_ENCODING for that.
-- Beppe
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-17