Here is an example of a cURL command to just get the header response of an http/https request:

curl http://www.google.com -o /dev/null -D -

-o /dev/null Discards the body of the response and -D - outputs the header information to stdout