[Tutor] File upload from python shell

Kent Johnson kent37 at tds.net
Mon Oct 15 13:44:43 CEST 2007


Paulino wrote:
> Hello!
> 
> 
> How can I upload a file from python?
> 
> If it is a form to fill with values it's simple:
> 
> 
> urlopen("http://site.com/action?key1=value1;key2=value2") and I get the 
> form filled.
> 
> 
> What about uploading a file programmaticaly?

This might help:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146306

Kent


More information about the Tutor mailing list