Code to test WebRequest and WebResponse

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.IO;   namespace ReadWebsite { class Program { static void Main(string[] args) { WebRequest request = WebRequest.Create(“http://www.microsoft.com”); WebResponse response = request.GetResponse();   StreamReader responseStream = new StreamReader(response.GetResponseStream()); string reponseText = responseStream.ReadToEnd();   Console.WriteLine(reponseText); Console.Read();   response.Close(); } } }