I heard that post method is not secure.
If it’s not secured, then how can i make it secured.
Which method should i use to get more security ?
In CakePHP, I use $this->request->data, this returns the data from post method.
What’s the alternative to this, if post method is not secured ?
I don’t know what you heard about post being insecure and I’m not really sure what you are afraid of (Could you clarify, please?).
If you use post, you can be sure that the data came in via a
POSTrequest (and not aGET).If you are afraid of someone listening in between your server and the client’s browser, it does not make much of a difference which method you use. Both can be intercepted. Use POST/GET via HTTPS instead of HTTP to prevent this.