<p>Given a URL, what would be the most efficient code to download the contents of that web page? I am only considering the HTML, not associated images, JS and CSS.</p>

[{'answer_id': 26237, 'author': 'Chris', 'author_id': 2134, 'author_profile': 'https://Stackoverflow.com/users/2134', 'pm_score': 5, 'selected': False, 'text': '<p><a href="http://msdn.microsoft.com/en-us/library/system.net.webclient%28VS.80%29.aspx" rel="noreferrer">System.Net.WebClient</a></p>\n\n<p>From MSDN:</p>\n\n<pre><code>using System;\nusing System.Net;\nusing System.IO;\n\npublic class Test\n{\n    public static void Main (string[] args)\n    {\n        if (args == null || args.Length == 0)\n        {\n            throw new ApplicationException ("Specify the URI of the resource to retrieve.");\n        }\n        WebClient client = new WebClient ();\n\n        // Add a user agent header in case the \n        // requested URI contains a query.\n\n        client.Headers.Add ("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");\n\n        Stream data = client.OpenRead (args[0]);\n        StreamReader reader = new StreamReader (data);\n        string s = reader.ReadToEnd ();\n        Console.WriteLine (s);\n        data.Close ();\n        reader.Close ();\n    }\n}\n</code></pre>\n'}, {'answer_id': 26238, 'author': 'John Sheehan', 'author_id': 1786, 'author_profile': 'https://Stackoverflow.com/users/1786', 'pm_score': 7, 'selected': True, 'text': '<pre><code>public static void DownloadFile(string remoteFilename, string localFilename)\n{\n    WebClient client = new WebClient();\n    client.DownloadFile(remoteFilename, localFilename);\n}\n</code></pre>\n'}, {'answer_id': 26242, 'author': 'Adam Haile', 'author_id': 194, 'author_profile': 'https://Stackoverflow.com/users/194', 'pm_score': 5, 'selected': False, 'text': '<p>Use the WebClient class from System.Net; on .NET 2.0 and higher.</p>\n\n<pre><code>WebClient Client = new WebClient ();\nClient.DownloadFile("http://mysite.com/myfile.txt", " C:\\myfile.txt");\n</code></pre>\n'}, {'answer_id': 25605187, 'author': 'EKanadily', 'author_id': 365867, 'author_profile': 'https://Stackoverflow.com/users/365867', 'pm_score': 3, 'selected': False, 'text': '<p>here is my answer ,a method that takes a URL and return a string</p>\n\n<pre><code>public static string downloadWebPage(string theURL)\n    {\n        //### download a web page to a string\n        WebClient client = new WebClient();\n\n        client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");\n\n        Stream data = client.OpenRead(theURL);\n        StreamReader reader = new StreamReader(data);\n        string s = reader.ReadToEnd();\n        return s;\n    }\n</code></pre>\n'}, {'answer_id': 27552526, 'author': 'liang', 'author_id': 802589, 'author_profile': 'https://Stackoverflow.com/users/802589', 'pm_score': 3, 'selected': False, 'text': '<p><a href="http://msdn.microsoft.com/en-us/library/fhd1f0sw%28v=vs.110%29.aspx" rel="noreferrer">WebClient.DownloadString</a></p>\n\n<pre><code>public static void DownloadString (string address)\n{\n    WebClient client = new WebClient ();\n    string reply = client.DownloadString (address);\n\n    Console.WriteLine (reply);\n}\n</code></pre>\n'}, {'answer_id': 54502464, 'author': 'Amir Astaneh', 'author_id': 577543, 'author_profile': 'https://Stackoverflow.com/users/577543', 'pm_score': 2, 'selected': False, 'text': '<p>I think this is the fastest (download speed time with low latency) solution for download.</p>\n\n<pre><code>// WebClient vs HttpClient vs HttpWebRequest vs RestSharp\n// در نهایت به نظرم روش زیر سریعترین روشه\nHttpWebRequest Request = (HttpWebRequest)WebRequest.Create(url);\nRequest.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;\nRequest.Proxy = null;\nRequest.Method = "GET";\nusing (WebResponse Response = Request.GetResponse())\n{\n    using (StreamReader Reader = new StreamReader(Response.GetResponseStream()))\n    {\n        return Reader.ReadToEnd();\n    }\n}\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/26233', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2141/']