Java发起post请求并以FormData携带数据
List<NameValuePair> body = new ArrayList<>();
body.add(new BasicNameValuePair(key, value));
String bodyString = URLEncodedUtils.format(body, "utf-8");
Map<String, String> headers = new HashMap<>();
headers.put("Content-Type", "application/x-www-form-urlencoded");
String accessJson = HttpClientHelper.post(ACCESS_URL, headers, bodyString);