25.04.2013 Views

Xarxes de computadors - Universitat Oberta de Catalunya

Xarxes de computadors - Universitat Oberta de Catalunya

Xarxes de computadors - Universitat Oberta de Catalunya

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

© FUOC • XP06/M2005/01487<br />

ANOTACIONS<br />

Nota<br />

La resposta 502 només és<br />

vàlida per a les coman<strong>de</strong>s no<br />

bàsiques; és a dir, les que<br />

no pertanyen al grup <strong>de</strong> la<br />

“implementació mínima”.<br />

222<br />

Programari lliure<br />

A més <strong>de</strong>ls codis <strong>de</strong> resposta específics continguts en aquesta taula, el<br />

client també pot rebre codis <strong>de</strong> resposta generals a cada comanda, com<br />

ara 500, 501, 502, 530 i 421, o bé, en el cas <strong>de</strong> les coman<strong>de</strong>s <strong>de</strong> transferència,<br />

425, 426 i 450.<br />

18.1.4. Implementacions <strong>de</strong> l’FTP<br />

A l’hora d’implementar el protocol FTP, hem <strong>de</strong> distingir servidor <strong>de</strong><br />

client:<br />

1. Servidors FTP<br />

Segons l’especificació RFC 959, la implementació mínima d’un servidor<br />

FTP ha <strong>de</strong> suportar les coman<strong>de</strong>s següents:<br />

• USER<br />

• RETR<br />

• TYPE A N<br />

• NOOP<br />

• STOR<br />

Sintaxi <strong>de</strong> les coman<strong>de</strong>s i els codis <strong>de</strong> resposta<br />

Comanda Resposta<br />

NLST [nom] 226, 250, 125, 150<br />

ABOR 226<br />

REST marca 350<br />

DELE fitxer 250, 550<br />

RNFR fitxer 350, 450, 550<br />

RNTO fitxer 250, 503, 532, 553<br />

MKD directori 257, 550<br />

RMD directori 250, 550<br />

STAT [nom] 211, 212, 213<br />

SYST 215<br />

SITE ca<strong>de</strong>na... 200, 202<br />

HELP [ca<strong>de</strong>na] 211, 214<br />

NOOP 200<br />

REIN 220, 120, 421<br />

QUIT 221

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!