Uri r=new Uri("http://www.youtube.com"); HttpWebRequest myWebRequest=(HttpWebRequest)WebRequest.Create(r); HttpWebResponse myWebResponse=(HttpWebResponse)myWebRequest.GetResponse(); Stream st=myWebResponse.GetResponseStream(); StreamReader s=new StreamReader(st); WebProxy proxy = WebProxy.GetDefaultProxy();//new WebProxy("128.232.103.203",3127); Console.WriteLine(s.ReadToEnd());