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
