Print service provided by iDogiCat: http://www.idogicat.com/
home logo





Home > IT > Web Server Administration > Debug HTTP Server with telnet

Debug HTTP Server with telnet

After making some configuration change to HTTP server, we can do simple tests using telnet.

Do it in the way shown below. The contents in BOLD are the lines that you need to input.


root:/www/conf> telnet localhost 80←
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
GET / HTTP/1.1←
Host: 127.0.0.1←
User-Agent: MSIE←
Accept-Encoding: deflate,gzip←
←

...

HTTP/1.1 200 OK
Date: Sun, 12 Aug 2007 16:41:44 GMT
Server: Apache
Last-Modified: Mon, 11 Jun 2007 14:23:11 GMT
ETag: "2c3502-2085-1ee111c0"
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Cache-Control: max-age=31536000
Expires: Mon, 11 Aug 2008 16:41:44 GMT
Content-Length: 3231
Content-Type: text/html; charset=UTF-8

...