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

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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!




.



Relevant Pages

  • Re: email spam
    ... "Ant" wrote in message ... >> They have encoded the URL, in an effort to get it through a scanner. ... > is sent with the http request and could confirm to the spammer that you ... is a username or username/password combination n the format: ...
    (alt.computer.security)
  • Re: Secure access to RPC over HTTPs
    ... >1) We would like some kind of additional authentication beside username + ... >to successfully configure RPC over HTTP + the require user certificate option ... I understand a setup with RSA Secure ID is out of the ... Is it possible to force the ISA ...
    (microsoft.public.exchange.admin)
  • Re: Can I do this with a firewall? nat with Password!
    ... Thanks, and yes the current system is username and password protected, the ... defence. ... this easily done in a firewall or should I put a NAT router behind it? ... home page as http but have a link or a redirection to https. ...
    (comp.security.firewalls)
  • Re: NTLM auth... client settings
    ... > Now I can use msdn routines to talk via http, ... > automatically these parametres... ... Username and password -- ...
    (microsoft.public.win32.programmer.networks)
  • Re: Bug in http package
    ... Are you sure it is supported by the http package itself? ... The server indicates that it needs username and password as part of a basic authentication with the following header: ... http::geturl does not refresh the header information in the second round. ...
    (comp.lang.tcl)