Re: Automate screen scraping: How to programmically "push" a Login button on another web page?

Tech-Archive recommends: Fix windows errors by optimizing your registry



You'll have to use HttpWebRequest to do a HTTP POST passing values for the IDs of the username and password fields. I'd suggest downloading Fiddler to see the HTTP traffic and it'll make what's being passed over the HTTP protocol seem so much more clear.

http://www.fiddlertool.com/fiddler/

-Brock
DevelopMentor
http://staff.develop.com/ballen



I'm hoping to write a utility program that will navigate to another
web site, logon with my username/password, and download data
automatically on a schedule.

When I use HttpWebRequest to get the initial logon screen, there are
multiple embedded forms (Login, Forgot your Password, etc).

I want to be able to pass my username/password information to the web
page's login form and "push" the button (on their webpage, this is
done through some javascript code).  When I view the source code of
this page, it appears that several hidden variables are set, so I
imagine the I would need to get/accept/return cookies.

I'm not sure how to "direct" the infomration to a page's particular
"form" - in my case, "pushing" the Login button.

Is there an example to automating this type of login that someone
could share with me?

Thanks!




.


Quantcast