RE: How to handle file uploads with http.server

2010-03-17 Thread Neil Blue
Thanks Gabriel Yep, that looks like the same one. Cheers Neil -Original Message- From: Gabriel Genellina [mailto:gagsl-...@yahoo.com.ar] Sent: 17 March 2010 02:08 To: python-list@python.org Subject: Re: How to handle file uploads with http.server En Thu, 11 Mar 2010 07:30:24 -0300

Re: How to handle file uploads with http.server

2010-03-16 Thread Gabriel Genellina
En Thu, 11 Mar 2010 07:30:24 -0300, Neil Blue escribió: I have a basic http.server instance running (class HTTPHandler(http.server.BaseHTTPRequestHandler), with python 3.1, and I would like to upload files with multipart forms. def do_POST(self): ctype, pdict = cgi.parse_header(self.

How to handle file uploads with http.server

2010-03-11 Thread Neil Blue
Hello, I have a basic http.server instance running (class HTTPHandler(http.server.BaseHTTPRequestHandler), with python 3.1, and I would like to upload files with multipart forms. def do_POST(self): ctype, pdict = cgi.parse_header(self.headers['Content-Type']) if ctype=='multipart/