http encodings

Manlio Perillo NOmanlio_perilloSPAM at libero.it
Sat May 29 02:34:08 EDT 2004


Hi.
RFC 2068 (Hypertext Transfer Protocol -- HTTP/1.1), introduces 4
encoding names: 

identity
gzip (x-gzip)
compress (x-compress)
deflate

Unfortunately standard Python library does not includes these codecs
in the codec registry, ad example with an http_encodings package.
This will allow one to do: 
data = read().encode( getheader('Content-encoding').split() )

Actually identity codec is banal.
-gzip: it is easy to implement using gzip module (I have written the
encode and decode methods, but it should be possible to write also
StreamWriter and StreamReader classes)

-deflate: codec is the same as zlib_codec?

-compress: where can I find it?



Thanks and regards  Manlio Perillo



More information about the Python-list mailing list