Re: Parsing MIME-encoded data in an HTTP request



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.
.



Relevant Pages

  • Re: Parsing MIME-encoded data in an HTTP request
    ... Ron Garret wrote: ... All the MIME routines in the Python standard library ... seem to have been subsumed into the email package, ... The server responds to these requests ...
    (comp.lang.python)
  • Re: Parsing MIME-encoded data in an HTTP request
    ... Ron Garret wrote: ... 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. ... I'm also using it to parse form parameters in a message body received by POST. ...
    (comp.lang.python)
  • Re: Parsing MIME-encoded data in an HTTP request
    ... All the MIME routines in the Python standard library ... seem to have been subsumed into the email package, ... Parse the resulting string into a email message ... Why does an HTTP server need to build an email message? ...
    (comp.lang.python)
  • Re: Parsing MIME-encoded data in an HTTP request
    ... All the MIME routines in the Python standard library ... seem to have been subsumed into the email package, ... The server responds to these requests ...
    (comp.lang.python)