Question : curl return code only
Answered by : tough-tuatara-jzlzsms54ht7
curl -s -o /dev/null -w "%{http_code}" http://www.example.org/
Source : https://superuser.com/questions/272265/getting-curl-to-output-http-status-code | Last Update : Sat, 08 Aug 20
Question : curl get return code
Answered by : uptight-unicorn-rtu7lrf8814i
curl -I http://www.example.org
Source : https://superuser.com/questions/272265/getting-curl-to-output-http-status-code | Last Update : Thu, 25 Mar 21