cURL / Mailing Lists / curl-library / Single Mail

curl-library

request encoding without decoding

From: Giuseppe Attardi <attardi_at_di.unipi.it>
Date: Sat, 16 Feb 2013 13:05:17 +0100

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.

I could only achieve this by configuring curl with

     --without-zlib

and setting:

     curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING,"gzip");

Is there a better way to do this?

-- Beppe

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-16