Much easier – this also follows links.
curl -IL http://example.com/in-the-shadows
-Iis an alias of--head, the man page states that it fetch the headers only-Lis an alias of--location, the man page states thatcurlwill follow the location header if there is one
kaiser
- 22.5k
- 18
- 92
- 112