Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to send a webrequest to a webpage which requires windows authentication. When research I found the following:

http://stackoverflow.com/questions/3562979/making-a-web-request-to-a-web-page-which-requires-windows-authentication[^]
>

The above works for me. I would like to know is there any other way to send request to windows authenticated application.

If I am using the above method for sending web request, i need to send username and password along with every request. I would like to know is it possible by sending the credentials once.


Thanks,
Sony
Posted
Comments
njammy 14-Jan-14 11:25am    
I didn't think it's possible to just send once, because it's a request and response mechanism. once the response is back it is 'game over' and all abandoned.

Even in IE or other browsers, you can ask it to remember credentials, but the browser still sends the credentials on your behalf for every request/access to the site.
Jameel VM 16-Jan-14 0:28am    
Please think in a Security point of view.What would you do any anonymous user or malcious user try to authenticate on second request? you should authenticate on every request else there is no security in your application

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900