curl-library
Re: Problem with CONTENT-ENCODING
Date: Thu, 15 Dec 2005 20:09:07 +0000
Dan Fandrich wrote:
> On Thu, Dec 15, 2005 at 06:36:18PM +0000, Jamie Lokier wrote:
> > A server that doesn't support qvalues seems unlikely to fail the
> > request - I would expect it to either ignore the qvalue, or treat it
> > as an encoding "deflate;q=0.5" which it doesn't recognise. Neither of
> > those would cause the request to fail.
>
> The latter would cause the request to fail if the server only supports
> deflate.
Oh? Wouldn't the server simply not compress the data?
> > Do you know of any servers which actually cause such a request to fail?
>
> I'm not aware of any that would fail the request in a manner other than
> mentioned above. In reality, it seems that servers themselves seem to
> prefer gzip over deflate so adding a q= parameter isn't likely to make
> much difference in practise.
I vaguely recall that some servers will send gzip data even with
"Accept-Encoding: deflate", and they might label it as
"Content-Encoding: deflate" despite the gzip data.
-- Jamie
Received on 2005-12-15