phr-n2002b at NOSPAMnightsong.com
Sun Jun 30 06:18:03 EDT 2002
Robin Becker <robin at jessikat.fsnet.co.uk> writes:
> However the content.gz data has to be exactly compatible with gzip. My
> experiments with Python-2.1/zlib on freeBSD give me a compressed string
> that's slightly too long for some reason. As an example gzip --> 14099
> bytes while zlib.compress-->15008 bytes.
> Anyone know what I need to do to make zlib work properly in this
> context? Or should I really be using the gzip module?
You're probably better off using mod_gzip (an apache module that
compresses the output automatically) rather than trying to compress
from Python. Note that gzip encoding doesn't work so well in some IE
More information about the Python-list