Specifications
Chapter 18. TCP/IP
463
The treatment of short records is under application control. The default is to delete any trailing
spaces (20h).
Alternatively, the FTP client can pad such short records to the specified record length with
spaces (20h).
CR LF
CR LF
CR LF
Specified record length
Specified record length
← Specified length
Record 1
Record 2
Record 3
Record 1
Record 2
← Short
← Short, with trailing spaces
← As is
← As is
← Truncated further
Spaces
Record 3
CR LF
CR LF
CR LF
Specified record length
Specified record length
← Specified length
Record 1
Record 2
Record 3
Record 1
Record 2
← Short
← Short, with trailing spaces
← As is
← Padded
← Padded
Record 3 SpacesSpaces
Spaces
Spaces