code: public static String post(String host, String path, Map<String, String> headers, String param,
                                Map<String, String> bodies, Boolean isJson) {
  
          CloseableHttpClient httpClient = null;
          CloseableHttpResponse response = null;
  
          try {
              // host校验，一定不能为空，否则无法进行请求
              ExceptionUtil.notNull(host);
  
              // 创建HttpClient
              httpClient = wrapClient(host);
  
              // 创建HttpGet
              HttpPost request = new HttpPost(buildUrl(host, path, param));
              defaultHeader(request);
  
              // header处理
              if (MapUtil.isNotEmpty(headers)) {
                  for (Map.Entry<String, String> e : headers.entrySet()) {
                      request.addHeader(e.getKey(), e.getValue());
                  }
              }
  
              // 数据
              if (MapUtil.isNotEmpty(bodies)) {
                  List<NameValuePair> list = new ArrayList<>();
                  for (Map.Entry<String, String> elem : bodies.entrySet()) {
                      list.add(new BasicNameValuePair(elem.getKey(), elem.getValue()));
                  }
                  if (list.size() > 0) {
                      UrlEncodedFormEntity entity = new UrlEncodedFormEntity(list, Charset.UTF_8);
                      if (isJson) {
                          entity.setContentType(ContentType.JSON);
                      } else {
                          entity.setContentType(ContentType.FROM);
                      }
                      request.setEntity(entity);
                  }
              }
  
              // 响应结果
              response = httpClient.execute(request);
  
              // 响应结果处理响应内容
              String result = null;
  
              if (response != null) {
                  HttpEntity resEntity = response.getEntity();
                  if (resEntity != null) {
                      result = EntityUtils.toString(resEntity, Charset.UTF_8);
                  }
              }
  
              return result;
          } catch (IOException e) {
              e.printStackTrace();
          } finally {
              close(httpClient, response);
          }
          return null;
      }
docs: 通过POST方式请求数据
  @param host 服务器主机[http(s)://ip:port]
  @param path 服务器虚拟目录
  @param headers 请求header设置(Map<String, String>)
  @param param 参数（URL编码）
  @param bodies 数据(Map<String, String>)
  @param isJson 是否采用JSON方式封装数据
  @return 响应数据（String）