zlib, gzip and HTTP compression.

Alan Kennedy alanmk at hotmail.com
Fri Jan 11 06:37:27 EST 2002


Paul Rubin <phr-n2002a at nightsong.com> wrote in message news:<7xadvle801.fsf at ruckus.brouhaha.com>...
> I thought the tag was Content-transfer-encoding but I'm not sure and
> don't feel like looking it up right now.

No, "Content-transfer-encoding" is a MIME header, not a HTTP header.
The HTTP headers are "Content-encoding" and "Transfer-encoding",
according to RFC2616.

> You -could- find the apache mod_gzip module linked from apache.org
> and compare it to your cgi.

I read extensively on the mod_gzip mailing lists, and everything that
I'm doing seems to agree with any information there.

I was hoping that someone here might have done this before(and maybe
even got it working ;-). That might save me having to figure out the
algorithms from the 11000+ lines of C source that makes up
mod_gzip.......

The only thing I can think of is that python zlib.compress is not
compatible with gzip compression as used in HTTP. Can anyone confirm
or deny that?

TIA,

Alan.



More information about the Python-list mailing list