HttpURLConnection
String listPolicyApiUrl = "请求的api地址";
Map map = new HashMap();
map.put("chanelCode",channelId);
map.put("IsInsureArray",1);//1需要 0 不需要
map.put("appId",APPID);
//请求参数装换成jasn格式字符串
String body = JSONObject.toJSONString(map);
OutputStreamWriter out = null;
BufferedReader br = null;
String result = "";
URL url = new URL(listPolicyApiUrl);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
// String sign = Md5Utils.getMD5String(body+APPKey);
//请求方式
conn.setRequestMethod("POST");
//设置通用的请求属性
conn