gzip HTTP results problem

Fredrik Lundh fredrik at pythonware.com
Tue Jul 29 10:47:43 EDT 2003


Bill Loren wrote:

> I've encountered a problem trying to decode gzip data
> returned from an HTTP server I communicate with (I use urllib2).
> I've tried to use both the gzip and zlib come-along python libraries but
> alas.
>
> Have anyone of you ppl succeeded in talking gzip with an HTTP
> server ?

this might help:

    http://effbot.org/zone/consumer-gzip.htm

(that piece of code is used in production code, so it should
work...)

</F>








More information about the Python-list mailing list