Skip to main content

Proposed Additions to FTP

The following suggestions and additions pertain to the File Transfer Protocol as stated in NWG/RFC 354 and NWG/RFC 385. After receiving comments to this RFC, I will have the three RFC's combined into a single document and have it issued as the ARPANET Official File Transfer Protocol, very soon. It should however be noted that FTP is an open-ended protocol with room for experimentation. New commands, reply codes, data representation types, and file structures may be defined in future. If two sites agree, they can define their own experimental set of commands, data types, file structures, and/or transfer modes. Such additions to the protocol should be well documented and clearly specified so that other sites can also make use of the same.

  1. The FTP assumes line-at-a-time interaction with local acho. The server is not obliged to provide remote echo and may ignore TELNET control characters. A server however should not give error or bad response on receiving TELNET control characters.

The server does not explicitly provide any editing capability such as character delete or line kill characters. All editing is assumed to be local. TIP users should use FTP in line mode and send both <CR> and <LF> (by TIP commands @T O L and @I L). In such a mode the TIP user can flush his current input line by the flush command (@F).

The server should respond to the TELNET "SYNCH" by flushing the current command line and waiting for user input such as an "ABOR" command. Other commands such as "BYE" or "STAT" may also constitute an acceptable input.

  1. Commands such as "STAT" which will produce more than one line of output over the TELNET connection, require some way of positively indicating the end of status information. It is proposed that a "200 status complete" reply give a positive indication for end of status information. The reply to STAT should begin with a line starting with 1xx (where x=digit), with the following lines not having a digit as their first character, and the status ending with the 200 reply. (Note that the requirement of three spaces is dropped in favour of the less restrictive requirement of the first character not being a digit.) This change would make operations much easier for both user and server FTPs.

  2. A reminder that BYE<CR><LF> is legal. A space after a command name is not required if there is a null argument.

  3. The following response are proposed to the "STAT" and "LIST" commands (this was not clearly specified specially for the null argument case). Responses to "STAT" and "LIST" shall always be over the TELNET and Data connections, respectively. The "LIST" command with null argument should produce a list of files in user's current working or default directory. The "STAT" command with null argument should (as suggested by Wayne Hathaway) produce tha status of all file transfer parameters (user, byte, size, data type, transfer mode, and file structure) if used between file transfers (i.e. no transfer in progress). If STAT is sent during a file transfer operation (accompanied with TELNET synch), the server should respond with the status of the operation in progress. If the argument of the "LIST" and "STAT" commands is a pathname, then a list associated with that pathname should be sent.