Пример #1
0
 /**
  * Do a general post request with binary data .
  *
  * @param url
  * @param params
  * @param body
  * @return
  * @throws IOException any network exception happen
  */
 public HttpStatus doPost(String url, Map<String, String> params, byte[] body) throws IOException {
   return doPost(url, null, params, HttpClientUtils.createEntity(body));
 }
Пример #2
0
 public HttpStatus doPost(
     String url, Map<String, String> headers, Map<String, String> formParameters)
     throws IOException {
   return doPost(url, headers, null, HttpClientUtils.createEntity(formParameters));
 }