The following procedure describes the steps used to send data to a server. This procedure is commonly used to post data to a Web page.
Create a WebRequest instance by calling Create with the URI of the resource that accepts data, for example, a script or ASP .Net page.
WebRequest request = WebRequest.Create("http://www.contoso.com/");