7. Scenario FTP tipico (TYPICAL FTP SCENARIO)
Utente sull'host U che desidera trasferire file da/verso l'host S:
In generale, l'utente comunicherà con il server tramite un processo user-FTP mediatore. Quello che segue può essere uno scenario tipico. I prompt user-FTP sono mostrati tra parentesi, '---->' rappresenta i comandi dall'host U all'host S e '<----' rappresenta le risposte dall'host S all'host U.
COMANDI LOCALI DALL'UTENTE AZIONE CHE COINVOLGE ENTRAMBI GLI HOST
ftp (host) multics<CR> Connessione all'host S, porta L,
stabilimento connessione di controllo.
<---- 220 Service ready ```<CRLF>```.
username Doe <CR> ---->USER Doe```<CRLF>```
<---- 331 User name ok,
need password```<CRLF>```.
password mumble <CR> ---->PASS mumble```<CRLF>```
<---- 230 User logged in```<CRLF>```.
retrieve (local type) ASCII<CR>
(local pathname) test 1 <CR> ---->RETR test 1```<CRLF>```
<---- 150 File status okay;
about to open data
connection```<CRLF>```.
Il server stabilisce una
connessione dati alla porta U.
<---- 226 Closing data connection,
file transfer successful```<CRLF>```.
type Image<CR> ---->TYPE I```<CRLF>```
<---- 200 Command OK```<CRLF>```
store (local type) image<CR>
(local pathname) file dump<CR> ---->STOR file dump```<CRLF>```
<---- 550 Access denied```<CRLF>```
terminate <CR> ---->QUIT ```<CRLF>```
Il server chiude tutte
le connessioni.