michael at stroeder.com
Wed Jan 9 12:59:07 CET 2002
Skip Montanaro wrote:
> >> Did you consider using Content-Encoding: gzip and compress the data
> >> on-the-fly? Usually works very well.
> Tim> IIS 4.0 :(
> Tim> If *anyone* knows how to do it with IIS 4.0 (I've done extensive
> Tim> searches online) please let me know for future reference.
> I know nothing about Windows, but that's never stopped me before. ;-)
> Can't you add
> <meta http-equiv="Content-Encoding" content="gzip">
> to your document's <head> and then gzip the body? Won't that sneak through
> IIS without corruption?
No, you can't do it like this. The HTML <head> section is already
part of the HTTP body which is meant to be gzipped. You have to send
the necessary header in the HTTP header to inform the browser about
the gzip-encoding *before* the browser starts reading the HTTP body.
More information about the Python-list