[Python-es] "parsear" los datos de 'input' en una llamada HTTP POST con SimpleHTTPServer.SimpleHTTPRequestHandler

Jose Caballero jcaballero.hep en gmail.com
Mar Nov 6 22:34:27 CET 2012


>
>
>
> Ok, parece que toda esa data la tiene en self.rfile, prueba con esto:
>
> def do_POST(self):
>     l = int(self.headers['Content-Length'])
>     print self.rfile.read(l)
>
>

Funciona. Perfecto!
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20121106/c110b113/attachment.html>


Más información sobre la lista de distribución Python-es