На Android-е для запроса написан такой код, проверить пока не моги ибо сначала нужен скрипт на php
Код: Выделить всё
HttpClient client = new DefaultHttpClient();
HttpConnectionParams.setConnectionTimeout(client.getParams(),10000);
HttpResponse response;
JSONObject json = new JSONObject();
try {
HttpPost post = new HttpPost(urlUpdate);
json.put("versiondb", vDBQ);
StringEntity se = new StringEntity(json.toString());
se.setContentType(new BasicHeader(HTTP.CONTENT_TYPE,"application/json"));
post.setEntity(se);
response = client.execute(post);
if (response != null) {
InputStream is = response.getEntity().getContent();
InputStreamReader isr = new InputStreamReader(is,"UTF-8");
StringBuffer data = new StringBuffer();
int c;
while ((c = isr.read()) != -1) {
data.append((char) c);
}
String message = new String(data.toString());
result = new JSONObject(message);
}
} catch (Exception e) {
Log.d("JSONError", e.getMessage());
}