POST method, CGI and file transfer

Michael Foord fuzzyman at gmail.com
Mon Sep 6 02:39:32 EDT 2004


"Robert Brewer" <fumanchu at amor.org> wrote in message news:<mailman.2875.1094324613.5135.python-list at python.org>...
> Michael Foord wrote:
> > Another http question.
> > First one is simple - if a POST is made *to* a CGI with file uplaods
> > then you can get a FieldStorage with list values - each entry in the
> > list being a file. Two questions about this :
> > 1) Is this the only situation you'll get list values posted to a CGI ?
> > If you have a list value in your FieldStorage instance can you be sure
> > that it's files ?
> 
> If I understand your question correctly, the answer is no. Regardless of
> whether you use GET or POST, you can submit something like
> "/script.cgi?value=1&value=2&value=3" and expect a list: value = 
> [1, 2,
> 3]. This behavior was around long before file uploads. ;)
> 
> 

Right - thanks Robert.
That answers one of my questions.

Regards,


Fuzzy

http://www.voidspace.org.uk/atlantibots/pythonutils.html

> Robert Brewer
> MIS
> Amor Ministries
> fumanchu at amor.org



More information about the Python-list mailing list