这是什么意思啊?
public static String sendJSON(String url, JSONObject obj) {
String result = null;
try {
HttpClient client = new DefaultHttpClient();
HttpPost request = new HttpPost(url);
StringEntity entity = new StringEntity(obj.toString());
request.setEntity(entity);
Log.e(TAG, "request is " + obj.toString());
HttpResponse response = client.execute(request);
Log.e(TAG, "response code="
+ response.getStatusLine().getStatusCode());
if (response.getStatusLine().getStatusCode() == 200) {
result = EntityUtils.toString(response.getEntity());
Log.e(TAG, "reponse is " + result);
return result;