Scripting HTTP POST - multipart/form-data
Jeff Shannon
jeff at ccvcorp.com
Mon Jul 19 20:57:20 EDT 2004
John J. Lee wrote:
>Jeff Shannon <jeff at ccvcorp.com> writes:
>
>
>
>>I'm looking to script a routine file-upload through an HTTP server
>>(which I don't have access to). I've got specs on the CGI app that
>>receives this upload (i.e. field names and expected contents).
>>
>>However, it looks like urllib/urllib2 won't handle multipart/form-data
>>POSTs.
>>
>>
>
>Neither should have any problem with multipart/form-data. They don't
>actually provide and specific support for it either, though.
>
>
True. I realized that, I was merely inexact with my wording. ;) The
problem being that I don't know how to enhance them to add that support...
>[...]
>
>
>>Is there another (preferably all-python) library that will work for
>>this?
>>
>>
>[...]
>
>Yes, one that works on top of urllib2:
>
>http://wwwsearch.sf.net/ClientForm
>
>
Ah, thank you! That looks like just what I needed.
Jeff Shannon
Technician/Programmer
Credit International
More information about the Python-list
mailing list