lots of tech info here

How to use the HTTP commands GET and HEAD

Here's a short tutorial on how to use GET and HEAD commands. Note: What you have to type is in blue colour. To check the header sent by the server for, say slashdot.org, this is what you do:

$ telnet slashdot.org 80
Trying 216.34.181.45...
Connected to slashdot.org (216.34.181.45).
Escape character is '^]'.
HEAD / HTTP/1.1
Host: slashdot.org
Connection: close

HTTP/1.1 200 OK
Date: Wed, 10 Dec 2008 20:58:58 GMT
Server: Apache/1.3.41 (Unix) mod_perl/1.31-rc4
SLASH_LOG_DATA: shtml
X-Powered-By: Slash 2.005001234
X-Fry: I can burp the alphabet. A, B, D ... no, wait ...
Cache-Control: private
Pragma: private
Connection: close
Content-Type: text/html; charset=iso-8859-1

Connection closed by foreign host.

Updated on 01 Dec 2008 {Created on 02 Dec 2008}

If you liked this article, subscribe to our Feed, follow us on Twitter (@aruljohn) and/or join our Facebook Page.

Share this with Others

Subscribe

Tags