curl-library
Re: gzip,deflate
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 17 Mar 2011 23:50:20 -0700
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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-18