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:
Michihito Shigemura 2017-10-24 22:23:36 +09:00
parent cdf573a725
commit 4319b8e699

View file

@ -36,3 +36,6 @@ curl --limit-rate 1000B -O http://path.to.the/file
# Get your global IP # Get your global IP
curl httpbin.org/ip curl httpbin.org/ip
# Get only the HTTP status code
curl -o /dev/null -w '%{http_code}\n' -s -I URL