I\'m trying to output the document body and its headers to STDOUT by doing
wget -S -O - http://google.com
...but it shows only the HTML docum
This worked for me for printing response with header:
wget --server-response http://www.example.com/