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

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -