I Want to Enter to another site with my program(asp.net/C#).
- HOW can i crawl the site and find username & password text boxes and fill them with needed data.
- then HOW can i press/Fire the login button?
NOTE : I crawl the site with HtmlAgilityPack before..is there any way to use this dll or any other dlls?
for example
username is : user
password is : passcode
and the login button id is : Press
how can i do this?
You don’t want to work that way. You need to simulate what the site would do once that form was submitted with a Post request to the server, passing the values. You can evaluate what the site does by using Fiddler2 and performing the form submission normall,y then sumulate as below:
Just Make a class using the above for posting data and return the html.