HTTP headers
October 13th, 2005 by George Notaras
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.
The HTTP headers by George Notaras, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Terms and conditions beyond the scope of this license may be available at www.g-loaded.eu.
December 23rd, 2006 at 10:29 pm
Although I prefer cURL, Wget has something similar with the
-Sand--save-headersoptions.