I want to send an HTTP request using Java to the parse server, here is the request
curl -X PUT \
-H "X-Parse-Application-Id: value" \
-H "X-Parse-REST-API-Key: value" \
-H "Content-Type: application/json" \
-d '{
"channels": [
"Giants"
]
}' \
https://api.parse.com/1/installations/mrmBZvsErB
To send it I have created a request using HttpURLConnection, I have set the three first params like this
connection.setRequestProperty("Content-Type", "application/json");
But for the last param, I am not sure how to set it to the request?