Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Python

python - mechanize/browser/POST issue

 
Jump to:  
 
bruce
PostPosted: 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
PostPosted: 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
PostPosted: 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
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

madagascar bezpłatne ogłoszenia w kaliszu Portal Miasteczko slaskie UB 04 HACCP