Next: , Previous: , Up: ftp: FTP client   [Contents][Index]


11.6 File transfer parameters

The FTP specification includes many parameters which may affect a file transfer. The type may be one of ‘ascii’, ‘image’ (binary), ‘ebcdic’, and ‘local’ byte size (for PDP-10’s and PDP-20’s mostly). ftp supports the ‘ascii’ and ‘image’ types of file transfer, plus local byte size 8 for tenex mode transfers.

ftp supports only the default values for the remaining file transfer parameters: mode, form, and struct.

An error in the treatment of carriage returns in the 4.2BSD ascii-mode transfer code has been corrected by the present implementation. This correction may result in corrupt transfers of binary files to and from 4.2BSD servers, when done using the ascii type. Avoid this problem by using the binary image type.