Cgi File Upload without Form

Max M maxm at mxm.dk
Sat Apr 28 05:01:01 EDT 2007


Karsten.G.Weinert at googlemail.com skrev:
> Hello,
> 
> what is the simplest way to upload a file (or a long string) to a
> server using cgi/python?
> 
> Since I want to upload the data programmatically, a form based
> solution is not good. I am not experienced with SOAP/WSDL and I
> believe that would be more difficult than necessary. The client
> program I have to use does not support FTP.

Try out urllib2

-- 

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science



More information about the Python-list mailing list