curl response +invalid certificate code example
Example 1: curl certificate and password
curl --cert certificate_file.pem:password https://www.example.com/some_protected_page
Example 2: get status code of curl
curl -o /dev/null -s -w "%{http_code}\n" http://localhost