[Python-3000] should rfc822 accept text io or binary io?

Neil Schemenauer nas at arctrix.com
Tue Aug 7 23:12:01 CEST 2007


Jeremy Hylton <jeremy at alum.mit.edu> wrote:
> Hmmm.  Should we being using the email package to parse HTTP headers?
> RFC 2616 says that HTTP headers follow the "same generic format" as
> RFC 822, but RFC 822 says headers are ASCII and RFC 2616 says headers
> are arbitrary 8-bit values.  You'd need to parse them differently.

It would be good to have a good RFC 2616 header parser in the
standard library.  I believe every Python web framework implements
it's own.

  Neil



More information about the Python-3000 mailing list