Obtener Cabeceras http con CURL

A través de un simple comando es posible obtener todas las cabeceras de una petición HTTP con cURL. A continuación dejo el comando y un ejemplo,

Comando a ejecutar
curl -I URL
Ejemplo
C:\>curl -I https://www.google.cl
HTTP/1.1 200 OK
Content-Type: text/html; charset=ISO-8859-1
P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Date: Mon, 27 Dec 2021 14:32:19 GMT
Server: gws
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Transfer-Encoding: chunked
Expires: Mon, 27 Dec 2021 14:32:19 GMT
Cache-Control: private
Set-Cookie: 1P_JAR=2021-12-27-14; expires=Wed, 26-Jan-2022 14:32:19 GMT; path=/; domain=.google.cl; Secure
Set-Cookie: NID=511=tqfyiE9yvt9FtgN5KYh7Y4LtCaUsgWDj9yzDTOvCz_bOIBbHeF1yTDtwMMk3CrWmngIbCKc829Ri9ZsxrzBNlaxwU9USCYEWmGPxbnteR6Wk4pP1tvtEtqLW1yRWin92W4t8VLwiL1JLOiiCQ48AInmxL9kokI8s_qhgwxdVk1k; expires=Tue, 28-Jun-2022 14:32:19 GMT; path=/; domain=.google.cl; HttpOnly
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"