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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -