Ever had the need to see what headers a remote web site sends back to you when you request a page with your browser?
You can use curl like this:
# curl --dump-header headers.txt http://www.example.com/ 1> /dev/null
The HTTP headers are saved in the headers.txt file.
HTTP headers by George Notaras is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Copyright © 2005 - Some Rights Reserved
Although I prefer cURL, Wget has something similar with the
-S
and--save-headers
options.