I created a webservice on an apache PHP server and I want to be able to call that webservice within java without using an httprequest.
My initial idea was to use a query string to pass an API key to update a database record. But than I smacked my head and realized a user could just decompile my code and see the request and use it in any browser. Is there a secure way of doing this?
I am trying to track statistics and if the user got a hold of the httprequest they could just go into a browser and goto the URL to mess with the numbers.
The request is just query strings. Like www.example.com?apikey=aausy7556ze&stat1=this&stat2=that
I want a way that this request either doesn't work in browsers or somehow do this without an httprequest. Hope that makes sense.