Or just use curl –head (curl -I is its shorter brother).