Answers for "curl check status"

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
1

get status code of curl

curl -o /dev/null -s -w "%{http_code}n" http://localhost
Posted by: Guest on January-15-2021

Browse Popular Code Answers by Language