php - HTTP Post using Thread -
i want send string using http post method server(www.000webhost.com)
using thread method in android.but unfortunately not responding`httppost httppost = new httppost("http://192.168.2.1:53811/winnersite/webservice.asm/mymethod
try { // add data list namevaluepairs = new arraylist(2); namevaluepairs.add(new basicnamevaluepair("json", name)); // namevaluepairs.add(new basicnamevaluepair("stringdata", "anddev cool!")); httppost.setentity(new urlencodedformentity(namevaluepairs)); // execute http post request httpresponse response = httpclient.execute(httppost);`
Comments
Post a Comment