I have the following code:
WebClient client = new WebClient();
String un = \"Username\";
String pw = \"Password\";
client.Credentials = new System.Net.Netwo
Try the old fashioned way:
string credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes(un + ":" + pw));
client.Headers[HttpRequestHeader.Authorization] = "Basic " + credentials;
IIRC WebClient doesn't send the Authorization request header until it gets a challenge from the server with 401.