FtpWebRequest compile with extended comments


This is a current compile of the team’s existing blogs on FtpWebRequest. I am going to update it periodically with new blogs and links to interesting forum questions regarding FtpWebRequest. If you find intersting topics or have ideas for new topics that would benefit our customers do not hesitate to contact us. 

MSDN documentation: 
http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx

FtpWebRequest Overivew: Here you will find the overview of the FtpWebRequest programming model in .Net Framework 2.0 and 3.5
http://blogs.msdn.com/adarshk/archive/2004/09/13/229069.aspx

Sending FTP commands with FtpWebRequest
http://blogs.msdn.com/mariya/archive/2008/07/26/ftpwebrequest-commands-and-how-they-work.aspx

Ftp over SSL with FtpWebRequest
This is a full article on how FtpWebRequest implements FTP over SSL (FTPS) it works, how to validate the server certificate, how to assign your own certificate. Includes samples
Note: FTPS is different form SFTP. Currently FtpWebRequest does not support SFTP
http://blogs.msdn.com/adarshk/archive/2005/04/22/410925.aspx

Sample code for parsing the response returned by FtpWebRequest for ListDirectoryDetails method
http://blogs.msdn.com/adarshk/archive/2004/09/15/230177.aspx

How to resume broken file download with FtpWebRequest
http://blogs.msdn.com/adarshk/archive/2004/12/01/273362.aspx

How to change to the root directory with FtpWebRequest
This question has been posted on the forums several times. The short answer is: yes, you can change to the root directory if your server allows you to. Find how in the blog below
http://blogs.msdn.com/mariya/archive/2006/03/06/544523.aspx

WebException message vs. Response.StatusDescription on FtpWebRequest
http://blogs.msdn.com/adarshk/archive/2005/05/04/414524.aspx

FtpWebRequest: Does the slash matter?http://blogs.msdn.com/mariya/archive/2006/06/15/632768.aspx

Comments (2)

  1. noxsoul says:

    Looking for way to get the SITE ftp command.  I am uploading a file at work to our MVS aka z/OS mainframe FTP Server.  I need to set up some record length and format parameters on the server.  

    I.e.

    quote LITERAL SITE LRECL=1100 RECFM=FB TRACKS PRIMARY=10 SECONDARY=5

    This needs to be set before I send a file from the PC.

    Thanks for any suggestions!

  2. JKK says:

    Hi All, I have a couple of questions.

    1. Is there any negative impact of using keepAlive = true, when i need to download multiple file, should i set the keepAlive as false for the last call ?

    2. Setting KeepAlive = true, does it impact the ftp server throughput by keeping any port/connection open ?