http encodings

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Manlio Perillo

    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('Cont ent-encoding').spli t() )

    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
  • John J. Lee

    #2
    Re: http encodings

    Manlio Perillo <NOmanlio_peril loSPAM@libero.i t> writes:
    [color=blue]
    > Hi.
    > RFC 2068 (Hypertext Transfer Protocol -- HTTP/1.1), introduces 4
    > encoding names:
    >
    > identity
    > gzip (x-gzip)
    > compress (x-compress)
    > deflate[/color]
    [...][color=blue]
    > 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)[/color]

    Would be good to have these. Maybe this is useful:



    [color=blue]
    > -deflate: codec is the same as zlib_codec?
    >
    > -compress: where can I find it?[/color]

    Dunno, but section 3.5 of RFC 2616 (the latest HTTP/1.1 RFC) certainly
    makes a distinction between the three encodings.


    John

    Comment

    Working...