System.Net.WebClient WC = new System.Net.WebClient(); NetworkCredential Cred = new NetworkCredential(); Cred.UserName = "user"; Cred.Password = "pass"; WC.Credentials = Cred; System.IO.Stream s = WC.OpenRead("https://xxxxxx/data.html"); System.IO.StreamReader sr = new System.IO.StreamReader(s); string webpage = sr.ReadToEnd();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)