curl usage to get header
curl -X HEAD -I "http://www.google.com"
https://stackoverflow.com/a/18820283/2618535