Is it possible to modify HTTP headers for the XML/REST probe? I'm using a Glassfish 3.1.2 server, that has a HTML/XML/JSON interface for monitoring. When querying Glassfish I must set an "accept header" eg. curl -H "accept: application/xml" [Some URL] for server to respond with XML. If I don't the response will be HTML.
I know I can use a custom sensor to do this, but I'd much rather use the XML/REST sensor for it, as it also includes to XPATH tool for finding the correct value the returned XML document...
Kind regards Kenneth Vindum
Add comment