cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to get compressed data?

From: Felix E. Klee <felix.klee_at_inka.de>
Date: Wed, 5 Jan 2011 18:52:06 +0100

I'd like to instruct libcurl to *not* decompress compressed responses.
Is this possible?

I know that I can set CURLOPT_ENCODING to NULL, and then the result
will be returned as raw. However, in this case no Accept-Encoding
header is set, which I presume is a bad idea.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-05