curl return code only
curl -s -o /dev/null -w "%{http_code}" http://www.example.org/
curl return code only
curl -s -o /dev/null -w "%{http_code}" http://www.example.org/
curl get example
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
get status code of curl
curl -o /dev/null -s -w "%{http_code}n" http://localhost
curl get return code
curl -I http://www.example.org
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us