Create a new instance of the WebRequest class.
using System; using System.Net; using System.IO; using System.Text; using System.Threading; public class MainClass{ public static void Main(){ WebRequest myRequest = WebRequest.Create("http://www.google.com"); } }