Proposed Changes to FTP-1
Let me summarize the specific changes to FTP-1 I'd like to see made, most of which are merely documentation changes to reflect reality:
1. HELP should return 200. All commands should return 2xx if successful, and I believe all do except HELP.
2. The definition of 1xx messages should be changed to read: "Informative replies to status inquiries. These constitute neither a positive nor a negative acknowledgment."
3. Experimental reply codes should be of the form x9x or xx9, where the first digit is chosen to reflect the significance of the reply to automated user programs. Reply codes greater than 599 are not permitted. The xx9 form should be used if the reply falls into one of the existing categories for the second digit. User programs are encouraged to determine the significance of the reply from the first digit, rather than requiring a specific reply code, when possible.
4. The STAT command with no argument is considered a request for a directory listing for the current working directory, except that it may be given along with TELNET SYNCH while a transfer is in progress, in which case it is a request for the status of that transfer. (Everyone seems to do the first part of this. I'm not sure if anyone actually implements the second. This is just getting the protocol to agree with reality.) The reply to a STAT command should be zero or more 1xx messages followed by a 200.
5. TYPEs P and F mean that the source file contains ASA control characters and that the recipient program should reformat it if necessary. Servers which care about Telnet-print vs. non-print should implement SRVR T and SRVR N. All user processes should provide a way for the human user to specify an arbitrary SRVR command.
6. (This is just a resolution of a loose end in documentation.) Nested reply codes are not allowed. I don't think this really needs more discussion; they never happen and can't possibly work, and FTP user programs shouldn't have to worry about them.