Answers for "how to get only response code from curl"

9

curl return code only

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

get status code of curl

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

Code answers related to "how to get only response code from curl"

Browse Popular Code Answers by Language