curl-users
Re: Content-Encoding when not sending Accept-Encoding
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 21 Mar 2011 08:19:01 -0700
Date: Mon, 21 Mar 2011 08:19:01 -0700
On Mon, Mar 21, 2011 at 11:46:56AM +0000, Tom Grace wrote:
> I noticed that when using the Stack Overflow API, gzipped content is
> always returned. The Content-Encoding: gzip header is returned, but
> Curl (7.19.7) does not follow this header and returns gzipped data.
> Is this expected behaviour ?
This is expected. curl will return the raw data by default. To have it
automatically decompress when necessary, use the --compressed option.
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-21