The response you are getting is from the simpleRequest method which states:
This method will return a tuple of (serverResponse, serverContent)
serverResponse: a dict of HTTP status information
serverContent: the body content
So that first bit isn't even json it seems, but a plain python dict.
... View more
Yeah, its all in a few files. The response itself is made by the generateError() in splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/controllers/proxy.py
But I don't really know a good way to edit that to make it know when to make json errors. And I don't know if/how that'd break the chain back.
... View more
Is that really a post request when you do "?output_type=json"?
But beyond that I don't see an difference in the output when I repeat the request with GET, and I am also not finding any docs on getting json responses back from the auth service?
... View more