i have built a web app on Cakephp ..i am sending data from android to webapp through HttpPost in a json object .. what i am doing write now is i write a url in httpPost like this
HttpPost post = new HttpPost("https://www.myweb.coom/test");
and in cakephp i am retrieving a data by checking that whether it is a post request or not
if ($this->request->isPost()){}
but the problem is how can i check whether the request is coming from my android app not somebody else because at this time if someone knows the url he can inject something into my db or will do something else..and by the way i am using https.. and there were some people saying that you dont need to do any think else as you are already using https.. but i am not feeling satisfied .. and also tell should i have to encrypt the data while sending from android and the decrypt it by key .. ? and if i should and then please tell me how can i do this