curl / Mailing Lists / curl-library / Single Mail


Re: CURLOPT_ACCEPT_ENCODING and unknown / unsolicited encodings

From: Patrick Monnerat via curl-library <>
Date: Wed, 22 Aug 2018 17:06:04 +0200

On 08/22/2018 04:43 PM, Rainer Canavan via curl-library wrote:
> Apologies for dredging up an issue that has been apparently been in
> published curl versions since at least about a year, but we've only
> just encountered it while upgrading a system from Ubuntu 17.10 to
> 18.04. The relevant commit is
> if I'm not mistaken.
This would have helped us much to have the curl version rather than the
Ubuntu's. After grepping Ubuntu's repository, it appears that curl's
version is 7.58.0.
> In curl versions up to at least 7.56.0, setting
> CURLOPT_ACCEPT_ENCODING to values other than NULL resulted in curl
> decoding "gzip" and "deflate" and quietly passing any other Encoding,
> such as "None", which is mistakenly used by one of our customers.
"None" is recognized from 7.59.0, containing the commit
that implements it. Maybe Ubuntu should upgrade ;-)

Received on 2018-08-22