Editing Curl --head (-I)

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{lowercase}}
 
:<code>[[-I]], --head          Show document info only</code>
 
:<code>[[curl -I]]</code>
 
:<code>[[curl -Is]]</code>
 
  
-i, --include      Include protocol response headers in the output
+
*<code>[[-I]], --head          Show document info only</code>
  
== Examples ==
 
  
{{curl google}}
+
*<code>curl -I https://google.com</code>
  
[[curl -I --http2]] https://google.com
 
[[HTTP/2]] 301
 
location: https://www.google.com/
 
content-type: text/html; charset=UTF-8
 
date: Wed, 13 Oct 2021 10:31:33 GMT
 
expires: Wed, 13 Oct 2021 10:31:33 GMT
 
cache-control: private, max-age=2592000
 
server: gws
 
content-length: 220
 
x-xss-protection: 0
 
x-frame-options: SAMEORIGIN
 
set-cookie: CONSENT=PENDING+087; 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"
 
 
curl -Is https://google.com | head -1
 
[[HTTP/2]] 301
 
 
== Related ==
 
[[curl -Is]] https://yourdomain.com | [[head -1]]
 
<code>[[curl -k]]</code> or <code>[[curl --insecure]]</code>
 
  
 
== See also ==
 
== See also ==
 
* {{curl}}
 
* {{curl}}
* {{HTTPS}}
 
  
 
[[Category:cURL]]
 
[[Category:cURL]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: