Open protected web page passing in credentials programmatically

Posted by beaudetious on Stack Overflow See other posts from Stack Overflow or by beaudetious
Published on 2010-03-25T17:48:07Z Indexed on 2010/03/25 18:53 UTC
Read the original article Hit count: 506

Filed under:
|

I have code examples from some of my previous work that help me to post form values to a web page (login credentials) and retrieve the text from that page. Now I want to pass in form values (login credentials again) but actually open that web page in a browser given those credentials.

How do I do that? I'm not doing anything nefarious. In our CRM app (home-grown as it is), I want to create a link button that opens our web site's protected products page given the user's credentials (based on the user's login credentials). Normally, I'd copy the user's credentials in our login page which then takes me to the products page. I'm trying to do this now by just clicking a link button.

Any suggestions?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about webrequest