Create WebRequest instance for the specified URI scheme.
using System;
using System.Net;
using System.IO;
using System.Text;
using System.Threading;
publicclass MainClass{
publicstaticvoid Main(){
Uri myUri =new Uri("http://www.google.com");
WebRequest myWebRequest= WebRequest.Create(myUri);
WebResponse myWebResponse= myWebRequest.GetResponse();
}
}