Difference between revisions of "Using cURL to troubleshoot monitors"
From Tech-Wiki
(Created page with "Category:F5 Networks '''Back to Misc'''") |
|||
Line 1: | Line 1: | ||
[[Category:F5 Networks]] | [[Category:F5 Networks]] | ||
'''[[F5 Networks#Misc|Back to Misc]]''' | '''[[F5 Networks#Misc|Back to Misc]]''' | ||
+ | |||
+ | cURL is a very useful tool when testing monitors | ||
+ | |||
+ | '''Example syntax for HTTP:''' | ||
+ | |||
+ | curl http://[ip][port]/[URI] | ||
+ | |||
+ | '''Example syntax for HTTPS:''' | ||
+ | |||
+ | curl <span style="color:#FF0000">-k</span> https://[ip][port]/[URI] | ||
+ | |||
+ | -k to ignore certificate issues | ||
+ | |||
+ | '''Example to pass a host header''' | ||
+ | |||
+ | curl --header 'Host: [host]' [http/https]://[ip][port]/[URI] | ||
+ | |||
+ | Additional useful option | ||
+ | |||
+ | -h for help | ||
+ | -v for verbosity |
Revision as of 07:11, 28 June 2017
cURL is a very useful tool when testing monitors
Example syntax for HTTP:
curl http://[ip][port]/[URI]
Example syntax for HTTPS:
curl -k https://[ip][port]/[URI]
-k to ignore certificate issues
Example to pass a host header
curl --header 'Host: [host]' [http/https]://[ip][port]/[URI]
Additional useful option
-h for help -v for verbosity