Use curl to check if host is up

➜  ~ curl -I www.google.com
HTTP/1.1 200 OK
Date: Wed, 04 Jan 2017 13:56:16 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
P3P: CP="This is not a P3P policy! See https://www.google.com/support/accounts/answer/151657?hl=en for more info."
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Set-Cookie: NID=94=DkmDkBanGi0EHqpIadkOmV79lFbq5u1_xgR6Gec4MNDtymCA86CJx9viZXRN-41UNPr58u6BrD-XqnhrarHENCoF38TUq-B0HOUvqVG8lG3d1P1MhB8UYOzP99yVUB2tB8sahQQrNEJq8xA; expires=Thu, 06-Jul-2017 13:56:16 GMT; path=/; domain=.google.com; HttpOnly
Transfer-Encoding: chunked
Accept-Ranges: none
Vary: Accept-Encoding
Show Comments