Actualizaciones recientes RSS Mostrar/ocultar comentarios | Atajos de teclado
-
diegor 10:08 pm el September 7, 2011 Enlace permanente | Responder
Algo está cambiando
¡Estad atentos!
¡Estad atentos!
Telnet es una vieja utilidad utilizadas en la red local para proporcionar una comunicación bidireccional orientada a texto usando un terminal. Puede ser utilizada para crear llamadas http hacia un servidor remoto con finalidad de testing. Veamos como:
#> telnet diegor.it 80
y deberías tener este output:
Trying 75.119.192.123... Connected to diegor.it. Escape character is '^]'.
GET / HTTP/1.1 host: diegor.it <line feed>
donde “/” es la ruta remota. En este caso nosotros queremos la raíz. El output parecerá como este de bajo:
HTTP/1.1 200 OK Date: Mon, 13 Jun 2011 09:06:43 GMT Server: Apache Cache-Control: no-cache, must-revalidate, max-age=0 Pragma: no-cache Expires: Wed, 11 Jan 1984 05:00:00 GMT Last-Modified: Sun, 12 Jun 2011 13:29:48 GMT Vary: Accept-Encoding Content-Length: 85589 Content-Type: text/html;charset=UTF-8 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ...
¡Muy simple! Preguntas y comentarios son bienvenidos.
Careful there, maybe that MaxOS X telnet is very smart, but usually the command is in the form “telnet hostname port”. So, ‘telnet www.diegor.it 80′ is a better way to do this, the protocol is specified by the port number.