Parsing MIME-encoded data in an HTTP request

Michael Ströder michael at stroeder.com
Fri Jul 4 09:49:55 CEST 2008


Ron Garret wrote:
> I'm writing a little HTTP server and need to parse request content that 
> is mime-encoded.  All the MIME routines in the Python standard library 
> seem to have been subsumed into the email package, which makes this 
> operation a little awkward.

How about using cgi.parse_multipart()?

Ciao, Michael.



More information about the Python-list mailing list