cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Support for GZIP Content-Encoding in HTTP responses

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 9 May 2003 16:41:08 -0700

On Fri, Apr 25, 2003 at 04:26:33PM +0200, Daniel Stenberg wrote:
> On Thu, 24 Apr 2003, Dan Fandrich wrote:
>
> > That's how it works now and how I suggest we leave it--setting NULL means
> > not to send Accept-Encoding and to ignore a received Content-Encoding.
> >
> > My suggestion is to set CURLENCODE_ALL_SUPPORTED to "", i.e. an empty string.
> > That would be replaced inside the library with the set of Accept-Encodings
> > supported. I can't think of a reason anyone would want to send an
> > Accept-Encoding: line with no argument, although it appears to be legal.
>
> I think this makes sense.

Attached is a patch that does this. This releases the application from
having to know what encodings the library supports.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

Received on 2003-05-10