Get raw output from web server

beingalex asked:

For research I am looking to get the actual raw output that apache sends when responding to a request, including all get data, headers, and the html. How would I go about this? I have tried:

wget --output-document=response.txt -S ""

This shows me the response headers all layered out nicely and sends the HTML to the response.txt, but I really want to see raw text and how this is formatted.

My answer:

Add the --save-headers option to the wget command line.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.