How to check a webserver's response from the command line?

wget --save-headers <url>