mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 17:08:29 +01:00
Add curl cheatsheet: Get only the HTTP status code
curl -o /dev/null -w '%{http_code}\n' -s -I URL
This commit is contained in:
parent
cdf573a725
commit
4319b8e699
1 changed files with 3 additions and 0 deletions
|
@ -36,3 +36,6 @@ curl --limit-rate 1000B -O http://path.to.the/file
|
|||
|
||||
# Get your global IP
|
||||
curl httpbin.org/ip
|
||||
|
||||
# Get only the HTTP status code
|
||||
curl -o /dev/null -w '%{http_code}\n' -s -I URL
|
||||
|
|
Loading…
Reference in a new issue