cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: gzip,deflate

From: Dung Nguyen <chong.xipam_at_gmail.com>
Date: Fri, 18 Mar 2011 16:19:43 +0700

many thanks! i got it now :)

2011/3/18, Dan Fandrich <dan_at_coneharvesters.com>:
> 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: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-18