Re: Content-Encoding: deflate - is this zlib file format?

On Fri, 7 Sep 2001, Daniel Barron wrote:

> I'm writing a filtering web proxy (see sig) and I'm having trouble with
> 'Content-Encoding: deflate' compressed data.  I need to decompress it to
> check the content.
> When it says 'Content-Encoding: gzip', I can just read from the socket as
> if I were reading a gzip file from the filesystem and pass it through the
> gzip decompression included in zlib.
> [snip]

	It seems to me that an easier solution might be to have your proxy
send an "Accept-Encoding" HTTP header to the server in order to disallow
compressed data...

-- fritz

Received on Friday, 7 September 2001 18:25:46 UTC