I am using a Volley structure with a JsonObjectRequest request. I use
JsonObjectRequest loginRequest = new JsonObjectRequest(b.toString(), params, new Listener<JSONObject>() {}, new Response.ErrorListener() {});
The params variable contains parameters, and this is a JSONObject.
The problem is that I cannot access any of these variables in my PHP code. The $ _POST or $ _REQUEST variables give me nothing.
I also tried something like below, but no luck.
$data = json_decode(file_get_contents("php://input"));
source share