android - Difficulty implementing POST request with JSONArrayRequest -


for reason data i'm trying post hosted php script isn't transmitting properly. know through hurl.it php script working fine , variable should passing through post accessible within class, reason post isn't working.

my code below:

public jsonobject getparams() {         map<string, string> params = new hashmap<>();         params.put("tag", "gameslist");         params.put("userid", userid);          postitems = new jsonobject(params);         return postitems;     }      private void sendjsonrequest() {          jsonarrayrequest request = new jsonarrayrequest(request.method.post, getrequesturl(10), getparams(), new response.listener<jsonarray>() {             @override             public void onresponse(jsonarray response) { 

i'm getting empty array [] response. appreciated.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -