Performing a HTTP/1.1 query using telnet

Http protocol No Comments »

If you are planning to test a remote or local web server running on 80 port it could be easily done by using telnet command from the linux shell or windows command line.

telnet www.yahoo.com 80
GET / HTTP/1.1
Host: www.yahoo.com

and hit enter two times and voila :)

Checking web server header

Http protocol, Web servers No Comments »

You can easily check a web server header using a simple telnet utility.

telnet www.yahoo.com 80
HEAD / HTTP/1.0

and hit Enter two times.

You will get a header response with the HTTP status code….

HTTP/1.1 200 OK
Date: Mon, 31 Jul 2006 05:47:22 GMT
P3P: policyref=”http://p3p.yahoo.com/w3c/p3p.xml”, CP=”CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV”
Cache-Control: private
Vary: User-Agent
Set-Cookie: FPB=7cum1i2o812cr6ba; expires=Thu, 01 Jun 2006 19:00:00 GMT; path=/; domain=www.yahoo.com
Connection: close
Content-Type: text/html

Connection closed by foreign host.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in