You can use any tool that can send a HTTP HEAD request and parse the answer.
With
curl for example:
# curl -I http://www.codeproject.com
HTTP/1.1 301 Moved Permanently
Cache-Control: private
Content-Length: 59
Content-Type: text/html; charset=utf-8
Location: https://www.codeproject.com/
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Set-Cookie: vk=11a1dc35-ac44-42c8-92a3-d78f457ca2c0; domain=.codeproject.com; expires=Tue, 11-Sep-2018 04:00:00 GMT; path=/; HttpOnly
Set-Cookie: SessionGUID=1fa7e3c1-5c50-4037-9c56-4bd24e70b1fc; path=/; HttpOnly
Date: Mon, 11 Sep 2017 14:15:59 GMT