Difference between revisions of "Using cURL to troubleshoot monitors"

From Tech-Wiki
Jump to: navigation, search
 
Line 24: Line 24:
  
 
If different partitions are used, you might need to change the routing domain:
 
If different partitions are used, you might need to change the routing domain:
  rdexec <route domain id>  
+
  rdexec <route domain id> command
  
 
==External links==
 
==External links==

Latest revision as of 14:43, 7 February 2019

Back to Misc

cURL is a very useful tool when testing monitors

Example syntax for HTTP:

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

Example syntax for HTTPS:

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

-k to ignore certificate issues

Example to pass a host header

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

Additional useful option

-h for help
-v for verbosity

If different partitions are used, you might need to change the routing domain:

rdexec <route domain id> command

External links