sftp - FTP Client Output Response standard -
after successful ftp file transfer, the response used "226 file send ok
", suddenly, has changed "226 transfer complete
"
i have below questions:
- does ftp response code has standard?
- can customize ftp output response specific status code?
find standard ftp response file transfer
$ ftp canopus connected canopus.austin.century.com. 220 canopus.austin.century.com ftp server (version 4.1 sat nov 23 12:52:09 cst 1991) ready. name (canopus:eric): dee 331 password required dee. password: 230 user dee logged in. ftp> pwd 257 "/home/dee" current directory. ftp> cd desktop 250 cwd command successful. ftp> type ascii 200 type set a. ftp> send typescript 200 port command successful. 150 opening data connection typescript (128.114.4.99,1412). 226 file send ok. ftp> cdup 250 cwd command successful. ftp> bye 221 goodbye.
note: response text 226 file send ok
has changed 226 transfer complete
find details ftp responses on wikipedia
an ftp reply consists of 3 digit number (transmitted 3 alphanumeric characters) followed text. the number intended use automata determine state enter next; text intended human user. intended 3 digits contain enough encoded information user-process (the user-pi) not need examine text , may either discard or pass on user, appropriate. in particular, text may server-dependent, there varying texts each reply code.
Comments
Post a Comment