cURL / Mailing Lists / curl-library / Single Mail


Re: gzip,deflate

From: Dan Fandrich <>
Date: Thu, 17 Mar 2011 23:50:20 -0700

On Fri, Mar 18, 2011 at 01:28:49PM +0700, Dung Nguyen wrote:
> I use curl to download webpage with encode in gzip/deflate.
> However it return me the binary encoded. How to decode them ?
> BTW: I pass "Accept-Encoding: gzip,deflate" to the header

The CURLOPT_ENCODING option needs to be set in order for libcurl
to do decompression transparently.

>>> Dan
List admin:
Received on 2011-03-18