Thanks for reporting this issue and helping us improve curl and libcurl. We're awaiting feedback in this issue. Due to this, I have set the state of this issue to pending and it will automatically get closed later on unless we get further info. Please consider answering the outstanding questions or providing the missing info so that we can proceed to resolve this issue!
2012-05-25 15:23:05 PDT by bagder
And, three comments earlier you said it does. curl will only decompress automatically when given the --compressed option. Otherwise, it returns the raw contents. Have you found documentation that suggests otherwise?.
2012-05-23 14:47:58 PDT by dfandrich
I expect than libcurl will detect the presence of "Content-Encoding: gzip" and uncompress gzip data automatically when writing to a file.
2012-05-23 14:38:06 PDT by luxintenebris
So, what's the problem then?.
2012-05-23 14:33:33 PDT by dfandrich
curl 7.25.0 (x86_64-pc-linux-gnu) libcurl/7.25.0.
2012-05-23 14:25:51 PDT by luxintenebris
curl -v -O --compressed works fine, curl writes uncompressed data.
2012-05-23 14:25:23 PDT by luxintenebris
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.
2012-05-23 14:21:33 PDT by dfandrich
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;...
2012-05-23 13:54:15 PDT by luxintenebris
Thanks for the report, this problem is now fixed in the git repository. To try it out, you either checkout/update your git clone: http://curl.haxx.se/source.html or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/.
2012-05-20 06:41:01 PDT by bagder
these files need updating: docs/curl-config.html docs/curl-config.1.
2012-05-19 08:03:56 PDT by jtaylor108