Greetings,
I have a little odd situation that needs some help from experts like you.
We are an internal webapp (within the company) that is set as Windows Authentication. The site captures the user perfectly.
Now, there is one feature that we validate some other websites' headers by using the anonymous user account. So the following codes don't seem to be working:
_response = null;
HttpWebRequest _request = (HttpWebRequest)WebRequest.Create(uri);
_request.Method = "GET";
_request.AllowAutoRedirect = true;
_request.Accept = "*/*";
_request.MaximumAutomaticRedirections = 4;
_request.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
The System.Net.CredentialCache.DefaultNetworkCredentials is using as the current logged in user account, not anonymous acc ...
Go to the complete details ...