16.04.2015 Views

Redes de computadores

Create successful ePaper yourself

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

ª FUOC • XP04/90786/00020<br />

Software libre<br />

3) Leer el artículo (ARTICLE)<br />

El parámetro pue<strong>de</strong> ser un i<strong>de</strong>ntificador único <strong>de</strong> artículo o un número<br />

<strong>de</strong> artículo <strong>de</strong>ntro <strong>de</strong>l grupo actualmente seleccionado (el artículo<br />

leído pasa a ser consi<strong>de</strong>rado como el artículo actual). Sin parámetro,<br />

este comando lee el artículo actual. El servidor respon<strong>de</strong> con un código<br />

220 seguido <strong>de</strong> dos parámetros: el número <strong>de</strong>l artículo y su<br />

i<strong>de</strong>ntificador único. A continuación, envía el contenido <strong>de</strong>l artículo<br />

(cabecera y cuerpo), acabado en “.”. Si hay algún error, el servidor<br />

respon<strong>de</strong> con los códigos 412, 420, 423 o 430, según el caso.<br />

ARTICLE [ < i<strong>de</strong>ntificador > |<br />

número]<br />

4) Leer la cabecera (HEAD)<br />

Este comando es idéntico a ARTICLE; sin embargo, el servidor sólo<br />

<strong>de</strong>vuelve la cabecera <strong>de</strong>l artículo. El código <strong>de</strong> respuesta será el 221<br />

en lugar <strong>de</strong>l 220, con los mismos parámetros.<br />

HEAD [ < i<strong>de</strong>ntificador > |<br />

número]<br />

5) Leer el cuerpo (BODY)<br />

Este comando es idéntico a ARTICLE; sin embargo, el servidor sólo<br />

<strong>de</strong>vuelve el cuerpo <strong>de</strong>l artículo. El código <strong>de</strong> respuesta será el 222 en<br />

lugar <strong>de</strong>l 220, con los mismos parámetros.<br />

BODY [ < i<strong>de</strong>ntificador > |<br />

número]<br />

6) Obtener el estatus (STAT)<br />

ANOTACIONES<br />

Este comando es idéntico a ARTICLE; sin embargo, el servidor no<br />

<strong>de</strong>vuelve ningún texto, sino sólo la línea <strong>de</strong> respuesta. El código será<br />

el 223 en lugar <strong>de</strong>l 220, con los mismos parámetros.<br />

STAT [ < i<strong>de</strong>ntificador > |<br />

número]<br />

7) Seleccionar el artículo siguiente (NEXT)<br />

Este comando selecciona el artículo siguiente <strong>de</strong>l grupo y hace que<br />

pase a ser consi<strong>de</strong>rado el artículo actual (es <strong>de</strong>cir, lo que se leerá si<br />

292

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

Saved successfully!

Ooh no, something went wrong!