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/22.214.171.124 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.
page revision: 0, last edited: 06 Nov 2008 23:42