First off I'm sorry if this has already been asked or answered. I have tried searching here but haven't found anything that answers it adequately enough for me to figure out my problem. So there is a couple servlets on the web that I have been given access to in order to make a program that will generate stats based on the data. As this has been given to me out of the kindness of their hearts I would rather not bother them with my inadequacies as a coder. So now onto my question...
All requests must include a POST parameter called “json” containing a JSON representation of the data to send to the servlet. All requests must look like this:
json = {
"version" : "xx",
"game" : "xxxxxxxxxxxxxx",
"platform" : "xxxxxxxx",
"userId" : <your user id>,
"password" : <your password>,
"data" : { <json data to send to the specific servlet> }
}
In Processing I have downloaded the HTTP Request library by Rune Madsen and Daniel Shiffman. I guess my main problem is I am unsure as to the correct way to send JSON in the POST request. Any help would be greatly appreciated. Thank you.