cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: request encoding without decoding

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 16 Feb 2013 14:42:53 +0100 (CET)

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
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-16