cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3529221 ] "Content-Encoding: gzip" ignored under certain condition

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 23 May 2012 14:25:51 -0700

Bugs item #3529221, was opened at 2012-05-23 13:54
Message generated for change (Comment added) made by luxintenebris
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3529221&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: http
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Lux In Tenebris (luxintenebris)
Assigned to: Daniel Stenberg (bagder)
Summary: "Content-Encoding: gzip" ignored under certain condition

Initial Comment:
When "Content-Disposition: attachment" is present libcurl will not decode response body.

Example:
$ curl -I http://slivmail.com/messages/original/40098
HTTP/1.1 200 OK
Content-Type: message/rfc822
Connection: keep-alive
Status: 200
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.12
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Disposition: attachment; filename="001f93~2.eml"
Content-Transfer-Encoding: binary
Cache-Control: private
X-UA-Compatible: IE=Edge,chrome=1
X-Request-Id: 9ec69f7ff77b534ff8eff797cb33c5fd
X-Runtime: 0.003493
Date: Wed, 23 May 2012 20:48:46 GMT
X-Rack-Cache: miss
Server: nginx/1.0.15 + Phusion Passenger 3.0.12 (mod_rails/mod_rack)

----------------------------------------------------------------------

>Comment By: Lux In Tenebris (luxintenebris)
Date: 2012-05-23 14:25

Message:
curl 7.25.0 (x86_64-pc-linux-gnu) libcurl/7.25.0

----------------------------------------------------------------------

Comment By: Lux In Tenebris (luxintenebris)
Date: 2012-05-23 14:25

Message:
curl -v -O --compressed works fine, curl writes uncompressed data

----------------------------------------------------------------------

Comment By: Dan Fandrich (dfandrich)
Date: 2012-05-23 14:21

Message:
Can you be more specific? How does it not decode the response body? What
does it output given the command: curl -v -O --compressed
http://slivmail.com/messages/original/40098

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3529221&group_id=976
Received on 2012-05-23

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET