Uploading a file using POST

Justin Ezequiel justin.mailinglists at gmail.com
Wed Mar 18 22:20:44 EDT 2009


On Mar 19, 8:50 am, Thomas Robitaille <thomas.robitai... at gmail.com>
wrote:
> I am trying to upload a binary file (a tar.gz file to be exact) to a  
> web server using POST, from within a python script.
>
> What I would like is essentially the equivalent of
>
> <form name='proceedings' method='post' action='www.whatever.com' 
> enctype="multipart/form-data">
> <input name="userfile" type="file">
> </form>

have you seen http://code.activestate.com/recipes/146306/




More information about the Python-list mailing list