How to check the headers of a Site using a custom IP address

Submitted by ricardo on Wed, 06/26/2013 - 13:45

This will check the site blog.ricardoamaro.com against the IP on Port 80 :
~$ curl -Is -H "host: blog.ricardoamaro.com"
HTTP/1.1 200 OK
Server: nginx
Content-Type: text/html; charset=utf-8
X-Drupal-Cache: HIT
Etag: "1372246782-0"
Content-Language: en
X-Generator: Drupal 7 (http://drupal.org)
Cache-Control: public, max-age=0
Last-Modified: Wed, 26 Jun 2013 11:39:42 +0000
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Vary: Cookie,Accept-Encoding
X-AH-Environment: prod

Powered by Drupal