- Downloading file using C# HTTP GET
- WebClient client = new WebClient ();
- client.Headers.Add ("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
- WebClient webClient = new WebClient();
- Stream stream = webClient.OpenRead("www.mypage.com");
- String request = stream.ReadToEnd();