Curl: Difference between revisions
Jump to navigation
Jump to search
(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 ==") |
(No difference)
|
Revision as of 02:17, 3 April 2024
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]