I\'m working with New Relic REST API
for the first time, I have a curl command:
curl -X GET \'https://api.newrelic.com/v2/applications/appid/me
curl -d
sends whatever you specify without formatting it in any way. Just send the string names[]=EndUser/...
in the OutputStream, without wrapping it in a JSONObject. Don't forget to call wr.flush()
after writing the string. And of course, after that, you need to get the InputStream
and start reading from it (I only mention this because it's not in your snippet).