Код: Выделить всё
HttpPost httppost = new HttpPost("http://www.smth.net/some.php");
try {
// Add your data
List nameValuePairs = new ArrayList(2);
nameValuePairs.add(new BasicNameValuePair("pa", "555"));
nameValuePairs.add(new BasicNameValuePair("pb", "550"));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
// Execute HTTP Post Request
HttpResponse response = httpclient.execute(httppost);
}
Я использовал $_POST['pa'] и urldecode($_POST['pa']), но оба они дают мне пустую строку.
Подробнее здесь: https://stackoverflow.com/questions/260 ... ers-in-php