cURL / Mailing Lists / curl-users / Single Mail

curl-users

On compressed content

From: frank ernest <doark_at_mail.com>
Date: Wed, 13 Nov 2013 12:52:08 -0500

"--tr-encoding (HTTP) Request a compressed Transfer-Encoding response using one of the algorithms curl supports, and uncompress the data while receiving it. --compressed (HTTP) Request a compressed response using one of the algorithms curl supports, and save the uncompressed document. If this option is used and the server sends an unsupported encoding, curl will report an error." What's the difference between the two? Is curl smart enough to tell when the data, for instance a jpg file, is already compressed and so further compression is unnecessary/unwanted?

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-11-13