Difference between revisions of "Curl --head (-I)"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
<code>[[-I]], --head Show document info only</code> | <code>[[-I]], --head Show document info only</code> | ||
− | + | [[curl]] -I https://google.com | |
− | + | HTTP/2 301 | |
+ | [[location]]: https://www.google.com/ | ||
+ | [[content-type]]: text/html; charset=UTF-8 | ||
+ | date: Wed, 13 Oct 2021 10:22:25 GMT | ||
+ | expires: Wed, 13 Oct 2021 10:22:25 GMT | ||
+ | cache-control: private, max-age=2592000 | ||
+ | server: gws | ||
+ | content-length: 220 | ||
+ | x-[[xss]]-protection: 0 | ||
+ | x-frame-options: SAMEORIGIN | ||
+ | set-cookie: CONSENT=PENDING+234; expires=Fri, 01-Jan-2038 00:00:00 GMT; path=/; domain=.google.com; Secure | ||
+ | p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info." | ||
+ | alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":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" | ||
Revision as of 10:27, 13 October 2021
-I, --head Show document info only
curl -I https://google.com HTTP/2 301 location: https://www.google.com/ content-type: text/html; charset=UTF-8 date: Wed, 13 Oct 2021 10:22:25 GMT expires: Wed, 13 Oct 2021 10:22:25 GMT cache-control: private, max-age=2592000 server: gws content-length: 220 x-xss-protection: 0 x-frame-options: SAMEORIGIN set-cookie: CONSENT=PENDING+234; expires=Fri, 01-Jan-2038 00:00:00 GMT; path=/; domain=.google.com; Secure p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info." alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":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"
See also
Advertising: