curl parametre
Brug
Henter en URL
Parametre
-I Henter header
-s Gør den ikke viser den body som den henter
Mere om curl
Eksempler
$ curl -I -s https://dr.dk HTTP/1.1 301 Moved Permanently Date: Tue, 18 Feb 2020 07:29:48 GMT Content-Type: text/html; charset=iso-8859-1 Connection: keep-alive Set-Cookie: __cfduid=df90aebfe939c18c5b95af7018dec6e511582010988; expires=Thu, 19-Mar-20 07:29:48 GMT; path=/; domain=.linuxboxen.dk; HttpOnly; SameSite=Lax Location: https://www.linuxboxen.dk/ CF-Cache-Status: DYNAMIC Server: cloudflare CF-RAY: 566e4ac8daefd881-CPH