Re: Proxy auth with default credentials



Done a bit more digging and it may not be the auth type that's the
problem, I've tried doing:

System.Net.NetworkCredential myCred =
System.Net.CredentialCache.DefaultCredentials.GetCredential(new Uri(
"http://myproxyserver"; ), "NTLM");

and if I examine the contents of myCred, everything is blank - no
matter what URI I specify, it comes back with blank username, blank
domain etc. If I look at User.Identity it's got it running as the right
person, am I being really thick as to what DefaultCredentials should
allow me to do? Is it maybe just not populated when you're
impersonating and I have to do something extra to make it work?

.