private static string GetWebTest1(string url) { System.Net.WebClient Client = new WebClient(); return Client.DownloadString(url); }
private static string GetWebTest2(string url) { HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url); WebResponse response = request.GetResponse(); Stream stream = response.GetResponseStream(); StreamReader reader = new StreamReader(stream); return reader.ReadToEnd(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)