Re: Standalone HTTP parser?
- From: "Gabriel Genellina" <gagsl-py2@xxxxxxxxxxxx>
- Date: Thu, 31 May 2007 17:47:31 -0300
En Thu, 31 May 2007 15:07:00 -0300, Christopher Stawarz <cstawarz@xxxxxxxxxxxxx> escribió:
Does anyone know of a standalone module for parsing and generating
HTTP messages? I'm looking for something that will take a string and
return a convenient message object, and vice versa. All the Python
HTTP parsing code I've seen is either intimately bound to the
corresponding socket I/O operations (e.g. httplib, httplib2,
BaseHTTPServer) and/or buried in somebody's framework (e.g. Twisted).
HTTP messages are like RFC 822. You can use the email.Message class to generate and parse HTTP headers.
--
Gabriel Genellina
.
- Prev by Date: Re: Standalone HTTP parser?
- Next by Date: RE: Is PEP-8 a Code or More of a Guideline?
- Previous by thread: Re: Standalone HTTP parser?
- Next by thread: Adding tuples to a dictionary
- Index(es):