|  | python - mechanize/browser/POST issue |  | |
| | | bruce |  |
| Posted: Wed Sep 03, 2008 12:39 am Post subject: python - mechanize/browser/POST issue |  |
evening...
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...
thanks |
| |
| | | Mohamed Yousef |  |
| Posted: Wed Sep 03, 2008 7:49 am Post subject: Re: python - mechanize/browser/POST issue |  |
Hello ,
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)
Regards, Mohamed Yousef
2008/9/3 bruce <bedouglas@earthlink.net>:
| Quote: | evening...
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...
thanks
-- LINK
|
|
| |
| | | Wojtek Walczak |  |
| Posted: Wed Sep 03, 2008 10:44 am Post subject: Re: python - mechanize/browser/POST issue |  |
On Tue, 2 Sep 2008 19:39:05 -0700, bruce wrote:
| Quote: | 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?
|
Take a look at the bottom of this post:
LINK
It seems that submit does the job.
-- Regards, Wojtek Walczak, LINK |
| |
|
|