Page tree
Skip to end of metadata
Go to start of metadata

When debugging problems with your HTTP server, access to the raw HTTP request and response headers (and sometimes the entire request and response) can be invaluable. Here we list various tools that can help you see, at minimum, the HTTP response headers sent by the server, and sometimes also request headers and body content.


Various HTTP tools that may be available at the unix prompt:

wget -S --spider URL
lynx -head -dump URL
curl -I URL
w3m -dump_head URL
siege -g URL

Manually constructing requests

Using any standard telnet client, you can manually interact with an HTTP server and see the headers.

telnet 80
HEAD /dir/page.html HTTP/1.1

Press enter twice at the end.

Tracing headers over SSL

The openssl command can be used to open an SSL connection over which normal HTTP requests can be entered.

openssl s_client -connect
.. lots and lots of output ..

Press enter twice at the end.

Alternatively, ssldump and wireshark can use the private key file to decrypt live or recorded SSL traffic.

  • No labels