Curl

From Omnia
Revision as of 02:17, 3 April 2024 by Kenneth (talk | contribs) (Created page with "== Return status code only == curl -s -o /dev/null -w "%{http_code}" google.com curl -s -o /dev/null -I -w "%{http_code}" google.com curl -s -o /dev/null -I -w "%{http_code}\n" google.com ref: <ref>https://superuser.com/questions/272265/getting-curl-to-output-http-status-code</ref> == keywords ==")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Return status code only

curl -s -o /dev/null -w "%{http_code}" google.com
curl -s -o /dev/null -I -w "%{http_code}" google.com
curl -s -o /dev/null -I -w "%{http_code}\n" google.com

ref: [1]

keywords