public static string ReadWebPage(string url) { string webPage; WebRequest request = WebRequest.Create(url); using (Stream stream = request.GetResponse().GetResponseStream()) { StreamReader sr = new StreamReader(stream); webPage = sr.ReadToEnd(); sr.Close(); } return webPage; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)