Debugging HTTP server
telnet www.xyz.com 80
GET /default.aspx?ID=12 HTTP/1.1
Host: www.xyz.com
User-Agent: Mozilla/5.0 Firefox/2.0.0.14
Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9,text/plain;q=0.8,image/png,*.*;q=0.5
Accept-Language: en-us, en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1, utf-8;q=0.7, *;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referrer: http://www.xyz.com/
Cookie:  ...........................

Rarely do we need to manually talk HTTP. Tools such as wget, or curl should be used most of the time. wget has option for adding extra headers, displaying response headers, following redirects, saving the output to a file, etc.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License