python - mechanize/browser/POST issue
harrrrpo at gmail.com
Wed Sep 3 11:49:38 CEST 2008
i don't know about mechanize but in general all you have to do is a
simple socket text sending
connect to the server then send it POST headers to page in question..
what to send ? getting this your self is much better and one of the
best tools is LiveHTTPHeaders - an addon for firefox -
so open it post the form in browser then see what you got in
LiveHttpHeaders , it will also help you more read through the form
being posted html code (knowing posted fields)
2008/9/3 bruce <bedouglas at earthlink.net>:
> 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.
> Anyone have a short chunk of code that I can observer, that uses the
> mechanize.Browser implentation?
> in searching the net, i haven't found any...
More information about the Python-list