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