curl-library
Re: Problem with CONTENT-ENCODING
Date: Fri, 2 Dec 2005 17:23:22 +0200
Hi,
I guessed so, but I have the most recent zlib version, and the decoding
worked fine when I tried it with a Firefox browser. Also I can make it work
by changing the order in the "Accept-Encoding:" header to "gzip,deflate"
instead of the default 'deflate,gzip' or setting CURLOPT_ENCODING to 'gzip'.
I was just wondering if it could be something else I'm missing here.
Anyway thanks for the response. I'll continue digging and will let you know
if something comes up.
Dobromir Velev
On 12/2/05, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Fri, 2 Dec 2005, Dobromir Velev wrote:
>
> > I'm writing a simple script for a client of mine using the libcurl
> library.
> > There seems to be a problem with the CURLOPT_ENCODING option when the
> > content is compressed with zlib (Content-Encoding: deflate) curl will
> return
> > "Error while processing content unencoding: incorrect header check".
>
> Well, zlib returns an error when trying to deflate the stream. The
> "incorrect
> header check" is actually the error message zlib provides.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
-- Dobromir Velev --------------------------------------------------------------------------- "Never attribute to malice that which can be adequately explained by stupidity"Received on 2005-12-02