Some classes within the System.NET namespace make connecting to a Web site easy. These classes include WebRequest, WebResponse, HttpWebRequest, HttpWebResponse, FileWebRequest, FileWebResponse, and WebClient.
These classes provide the following features:
Support for HTTP, HTTPS, FILE, and so on
Simple methods for uploading and downloading data
This list of classes might seem like too many classes to handle; however, with the exception of WebClient, the request classes derive from WebRequest, and the response classes derive from WebResponse.
The request object is generated from the static WebRequest.Create method, and the WebResponse object is generated from the request ...