Posts Using curl to show error only
Post
Cancel

Using curl to show error only

  • curl
1
$ curl --insecure --silent --output /dev/null --show-error https://url.bla.com:8443/api/bla

Use –insecure only if you trust the endpoint as curl will ignore any ssl errors

–silent and –output is to quetly route all output to /dev/null

–show-error is to display any error message like “curl: (7) Failed to connect to url.bla.com port 8443: Connection refused”

This post is licensed under CC BY 4.0 by the author.