RE: How to handle file uploads with http.server

2010-03-17 Thread Neil Blue
, 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.hea

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/