80,490
社区成员
发帖
与我相关
我的任务
分享
JSONObject jsonParam = new JSONObject();
jsonParam.put("chnl_id", "11");
jsonParam.put("title", bean.getTitle());
StringEntity entity = new StringEntity(jsonParam.toString(),"utf-8");
entity.setContentEncoding("UTF-8");
entity.setContentType("application/json");
HttpPost method = new HttpPost(url);
method.setEntity(entity);
HttpResponse result = httpClient.execute(method);
可以参考一下这段..
///