[2005] login to an aspx page httpwebrequest
Hi all
I'm making a little application to use at work which, hopefully, logs in to a company aspx site and extracts user status, such as if the user exist (I will pass the personell number as a query which returns user name etc). I can make this happen when I embed a browser to the application, but I would like it to be done without the use of a browser object. Any pointers on how to go about doing this? Will I need to add code for proxy as well if I drop the browser from the form?
Edward.
Re: [2005] login to an aspx page httpwebrequest
Yes, you'll need to detect the current internet connection settings from your application, then based upon that, give the WebRequest credentials for use in the proxy server.
If the login page also requires SSL, you will have to handle that separately by accepting the certificate.
Re: [2005] login to an aspx page httpwebrequest
Thanks so far, I've tryed to google and search sevral forums for a snippit of code to put me on track regarding the login etc. All I've found so far is to catch the session (fiddler) an get some ID from the asp that must be passed along the POST. I'm now lost, and a bit over my head - anyone have some code for me to play with for a starter?
Edward.