Answers for "curl check http status"

9

curl return code only

curl -s -o /dev/null -w "%{http_code}" http://www.example.org/
Posted by: Guest on August-01-2020
0

curl test https

curl --insecure -v https://www.google.com 2>&1 | awk 'BEGIN { cert=0 } /^* Server certificate:/ { cert=1 } /^*/ { if (cert) print }'
Posted by: Guest on February-25-2021

Browse Popular Code Answers by Language