Using cURL to troubleshoot monitors

From Tech-Wiki
Revision as of 07:16, 28 June 2017 by Linogenco (Talk | contribs)

Jump to: navigation, search

Back to Misc

cURL is a very useful tool when testing monitors

Example syntax for HTTP:

curl http://[ip][port]/[URN]

Example syntax for HTTPS:

curl -k https://[ip][port]/[URN]

-k to ignore certificate issues

Example to pass a host header

curl --header 'Host: [host]'  [METHOD]://[ip][port]/[URN]

Additional useful option

-h for help
-v for verbosity