cURL / Mailing Lists / curl-library / Single Mail


Re: request encoding without decoding

From: Daniel Stenberg <>
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

List admin:
Received on 2013-02-16