From 4b2167dca35f12d0fe24b723451bc85ce2ea65f6 Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Sat, 29 Aug 2020 21:21:09 +1000 Subject: [PATCH] Use curl to find out the http status code of a URL --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index ba4824f..cd4538a 100644 --- a/README.md +++ b/README.md @@ -2488,6 +2488,11 @@ curl -I http://example.com/ # Vary: Accept-Encoding ``` +##### Find out the http status code of a URL +```bash +curl -s -o /dev/null -w "%{http_code}" https://www.google.com +``` + ##### Perform network throughput tests ```bash # server side: