cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem with CONTENT-ENCODING

From: Dobromir Velev <diadomraz_at_gmail.com>
Date: Fri, 2 Dec 2005 15:41:48 +0200

Hi,
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".

Any help will be appreciated.

I'm using libcurl with the following setup
#curl -V
curl 7.15.0 (i686-pc-linux-gnu) libcurl/7.15.0 OpenSSL/0.9.7a zlib/1.2.3
Protocols: tftp ftp gopher telnet dict ldap http file https ftps
Features: Largefile NTLM SSL libz

Here is a sample session from curl, and if you need additional info please
let me know.

* About to connect() to www.brazilianfightwear.com port 80
* Trying 65.36.133.119... connected
* Connected to www.brazilianfightwear.com (65.36.133.119) port 80
> GET / HTTP/1.1
> Host: www.brazilianfightwear.com
> Accept: */*
> Accept-Encoding: deflate, gzip
>
< HTTP/1.1 302 Object moved
< Date: Fri, 02 Dec 2005 13:01:00 GMT
< Server: Microsoft-IIS/6.0
< X-Powered-By: ASP.NET
< Location:
http://www.brazilianfightwear.com/store/stores_app/store.asp?Store_Id=117&page_id=5
< Content-Length: 208
< Content-Type: text/html
< Set-Cookie: ASPSESSIONIDCSQRSBTS=HADNNGAAKKGJEAJANGMJFJEM; path=/
< Cache-control: private
* Ignoring the response-body
* Connection #0 to host www.brazilianfightwear.com left intact
* Issue another request to this URL: '
http://www.brazilianfightwear.com/store/stores_app/store.asp?Store_Id=117&page_id=5
'
* Re-using existing connection! (#0) with host www.brazilianfightwear.com
* Connected to www.brazilianfightwear.com (65.36.133.119) port 80
> GET /store/stores_app/store.asp?Store_Id=117&page_id=5 HTTP/1.1
> Host: www.brazilianfightwear.com
> Accept: */*
> Accept-Encoding: deflate, gzip
>
< HTTP/1.1 200 OK
< Cache-Control: private
< Date: Fri, 02 Dec 2005 13:01:01 GMT
< Content-Type: text/html
< Server: Microsoft-IIS/6.0
< X-Powered-By: ASP.NET
< Set-Cookie: ASPSESSIONIDCSQRSBTS=IADNNGAAGLAGNIGPPJEPAAKN; path=/
< Content-Encoding: deflate
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
Error while processing content unencoding: incorrect header check
* Failed writing data
* Closing connection #0
curl: (23) Error while processing content unencoding: incorrect header check

--
Dobromir Velev
---------------------------------------------------------------------------
"Never attribute to malice that which can be
adequately explained by stupidity"
Received on 2005-12-02