The default constructor creates a new instance of the WebClient class. The default HTTP method is GET. The default FTP method is RETR. The default Encoding is Default. The default value of AllowAutoRedirect is true.
The following code example creates a WebClient instance and then uses it to download data from a server and display it on the system console, to download data from a server and write it to a file, and to upload form values to a server and receive the response.