Difference between revisions of "Curl"
From Useful Things
(Created page with "== Check response headers == <source lang="bash"> curl -I http://www.google.com/ </source>") |
|||
| Line 1: | Line 1: | ||
| + | == Common arguments == | ||
| + | <code>-I</code> request header only<br /> | ||
| + | <code>-L</code> use with <code>-I</code> to follow redirects | ||
| + | |||
== Check response headers == | == Check response headers == | ||
<source lang="bash"> | <source lang="bash"> | ||
curl -I http://www.google.com/ | curl -I http://www.google.com/ | ||
</source> | </source> | ||
Latest revision as of 11:20, 8 July 2014
Common arguments
-I request header only
-L use with -I to follow redirects
Check response headers
curl -I http://www.google.com/