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 will not work:
wget -q -S -O - google.com 1>wget.txt 2>&1
since redirects are evaluated right to left, this sends html to wget.txt and the header to STDOUT:
wget -q -S -O - google.com 2>&1 1>wget.txt