Please take note of the following points while coding
in this area.
Unless the EnableSsl property is true, all data and commands,
including your user name and password information, are sent to the server in
clear text. Anyone monitoring network traffic can view your credentials and use
them to connect to the server. If you are connecting to an FTP server that
requires credentials and supports Secure Sockets Layer (SSL), you should set
EnableSsl to true.
If you do not have the proper WebPermission to access the
FTP resource, a SecurityException exception is thrown.
Requests are sent to the server by calling the GetResponse
method. When the requested operation completes, an FtpWebResponse object is
returned. The FtpWebResponse object provides the status of the operation and
any data downloaded from the server. That is,
StatusCode property of FtpWebResponse object provides the latest status code
returned by the FTP server. StatusDescription property of FtpWebResponse object
provides the description of the status code returned.