Add support for the quote command.
Some FTP servers have special SITE commands that are accessed via the FTP quote command. Please provide a way to do this.
-
Adminmartin.vobr (Admin, Rebex) commented
It's already there. The QUOTE is a syntax used by some ftp command line clients that indicates that the text after quote should be sent directly to the FTP server. To emulate this using Rebex FTP use the Ftp.Site(string) method.
To send
QUOTE SITE RECFM=FB LRECL=100 BLOCKSIZE=27900use following code:
// send SITE command
// note that QUOTE and SITE are ommited. QUOTE is command line ftp syntax only.
Ftp client = new Ftp();
... // connect, login, etc...client.Site("RECFM=FB LRECL=100 BLOCKSIZE=27900");
( taken from http://forum.rebex.net/questions/275/send-an-lrecl-command-to-the-mainframe/277#277 )