cURL / Mailing Lists / curl-users / Single Mail

curl-users

Curl might not be decompressing the body if the server sends it compressed without being asked to do so

From: Attila-Mihaly Balazs <dify.ltd_at_gmail.com>
Date: Fri, 1 Jul 2016 16:15:39 +0300

I can't reliably reproduce this, but I think that if the server sends
the response compressed (ie. "Content-Encoding: gzip") without curl
asking for this (ie. the "--compressed" flag was not specified), curl
doesn't decompress the body.

I intermittently observed this behavior with some of Google's CDN
servers (ie. if you upload static files to google appengine it pushes
it to some "frontend caches" which seem to exhibit this behavior from
time to time).

My curl version is from the Ubuntu 16.04 package manager: curl 7.47.0
(x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8
libidn/1.32 librtmp/2.3

This is nothing too major (and can be argued that the server
implementation is not conformant), but thought that somebody might be
interested.

Cheers,
Attila
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-07-01