How can I use Python with Mechanize for posting multipart/form-data?
Posted
by Jonathan
on Stack Overflow
See other posts from Stack Overflow
or by Jonathan
Published on 2010-03-13T20:23:03Z
Indexed on
2010/03/13
20:25 UTC
Read the original article
Hit count: 617
Hi there!
I am using http://pypi.python.org/pypi/mechanize/0.1.11 for programmatic web browsing, I want to be able to upload files to servers the same way the browser does (by sending the content as multipart/form-data, defined in RFC2388)
Is this possible with mechanize, can you show me an example?
Thanks!
© Stack Overflow or respective owner