Is it possible to write a C# program that will load up a webpage, pass the webform parameters to login, then click on a link and download the page information? Obviously, I'd be supplying the username and password.
In context, let's say I want to check if there are any new news updates on my school account, which I must login to with my school username/password. Could I supply my program with the desired info and somehow get it to pass these parameters to the webform and continue along the page?
Yes it is possible to programmatically login to a site.
You need to know how your school website handles logins. Say, your school website's login handler is some Login.aspx, and it takes username and password as POST, then you need to send a POST request from your program using WebRequest, adding your username and password as POST variables to your request.
Hope that helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With