android - Unable send POST request, parameters might be empty -


i trying send post request in android. $_request empty.

this code:

try {          strictmode.setthreadpolicy(new strictmode.threadpolicy.builder().permitnetwork().build());         list<namevaluepair> namevaluepairs = new arraylist<namevaluepair>();         namevaluepairs.add(new basicnamevaluepair("firstname", firstname));         namevaluepairs.add(new basicnamevaluepair("lastname", lastname));         httppost.setentity(new urlencodedformentity(namevaluepairs));          // execute http post request         httpresponse response = httpclient.execute(httppost);     } catch (exception e) {         e.printstacktrace();     } 

any suggestions?

maybe don't know how obtain parameter.

in php script, have code:

error_log(var_export($_request, true) . "\n", 3, "/users/christianrusso/desktop/crusso.log"); 

the request empty.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -