Unix / Linux: Wget Save The Http Headers Command

by on October 28, 2012· last updated at October 28, 2012

Fig.01: wget saving the http headers

Save the headers sent by the HTTP server to the file, preceding the actual contents, with an empty line as the separator:

wget --save-headers http://www.cyberciti.biz/
vi index.html
Read answer to: "wget Command: Download Compressed File By Sending gzip Headers"

Comments on this FAQ are closed. If you'd like to continue the discussion on this topic, you can do so at our forum.