471,119 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,119 software developers and data experts.

http encodings

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
Jul 18 '05 #1
1 1377
Manlio Perillo <NO******************@libero.it> writes:
Hi.
RFC 2068 (Hypertext Transfer Protocol -- HTTP/1.1), introduces 4
encoding names:

identity
gzip (x-gzip)
compress (x-compress)
deflate [...] 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)
Would be good to have these. Maybe this is useful:

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

-deflate: codec is the same as zlib_codec?

-compress: where can I find it?


Dunno, but section 3.5 of RFC 2616 (the latest HTTP/1.1 RFC) certainly
makes a distinction between the three encodings.
John
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by P | last post: by
27 posts views Thread by John Roth | last post: by
5 posts views Thread by F. GEIGER | last post: by
9 posts views Thread by Safalra | last post: by
10 posts views Thread by Bugs | last post: by
3 posts views Thread by Grzegorz Smith | last post: by
6 posts views Thread by Raphael.Benedet | last post: by
3 posts views Thread by Philip Semanchuk | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.