Checking response headers using the command line (console)

Use the command below to view the response headers for a given URL. The “–spider” option in the call prevents wget from actually downloading the page/file; it just checks that it exists and returns the headers.

wget --server-response --spider http://www.example.com

 

References


http://www.gnu.org/software/wget/manual/html_node/Download-Options.html

 

This entry was posted in The Garage and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>