cURL: Retrieve only the headers
11 March 2022 (Updated 11 March 2022)
curl -i -X OPTIONS example.com
Example output:
HTTP/1.1 200 OK
Allow: OPTIONS, GET, HEAD, POST
Cache-Control: max-age=604800
Content-Type: text/html; charset=UTF-8
Date: Thu, 13 Jan 2022 15:26:03 GMT
Expires: Thu, 20 Jan 2022 15:26:03 GMT
Server: EOS (vny/0452)
Content-Length: 0
Tagged:
cURL