[wwwsearch-general] python - mechanize/browser/POST issue

John J Lee jjl at pobox.com
Wed Sep 3 23:53:06 CEST 2008


On Tue, 2 Sep 2008, bruce wrote:
[...]
> using mechanize/Browser, i can easily do a url/get, and process submitting a
> form that uses a GET as the action. however, I'm not quite sure how to
> implement the submittal of a form, that uses the POST action.
[...]

Same way as any other form.

The HTTP method used is determined by the value of the form element's 
"action" attribute.


John




More information about the Python-list mailing list