Montag, Juli 05, 2004


HTTP-Connection test with telnet

recently I get the question how to test a HTTP Server connection without any browser (eg. on a server without any X-Server). The simplest way is to connect the HTTP Server with the telnet programm and request the resource with HTTP commands:
Here an example:
Open the connetion with the http listener port:
telnet 80
Requet the resource /index.htm with GET methode and protocol HTTP/1.1:
GET /index.htm HTTP/1.1

This will get the complete html content of the index.html page


HEAD /pages/test.jsp HTTP/1.1
to get informations about the resource

See also ....

<< Home

This page is powered by Blogger. Isn't yours?