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