From 4319b8e69922676acc5c596fd2ad98c739377458 Mon Sep 17 00:00:00 2001 From: Michihito Shigemura Date: Tue, 24 Oct 2017 22:23:36 +0900 Subject: [PATCH] Add curl cheatsheet: Get only the HTTP status code curl -o /dev/null -w '%{http_code}\n' -s -I URL --- cheat/cheatsheets/curl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat/cheatsheets/curl b/cheat/cheatsheets/curl index 52f53ea..c8c281f 100644 --- a/cheat/cheatsheets/curl +++ b/cheat/cheatsheets/curl @@ -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