I\'m trying to get a html source of a website through C# code. When I access the site with windows authentication the following code works:
using (WebClient
Try this:
CredentialCache cc = new CredentialCache(); cc.Add( new Uri("http://intranet/"), "NTLM", new NetworkCredential("username", "pass", "domain")); client.Credentials = cc;