in src/main/java/com/epam/dep/esp/common/web/Web.java [128:141]
public String post(String path, Map<String, String> headers, Map<String, String> params, Credentials credentials, HttpEntity payload) throws WebToolsException {
try {
URI uri = buildURI(path, params);
HttpPost httpPost = new HttpPost(uri);
httpPost.setConfig(requestConfig);
setRequestEntity(httpPost, payload);
addHeaders(httpPost, headers);
addCredentials(httpPost, credentials);
HttpClientContext context = HttpClientContext.create();
return performRequest(context, httpPost);
} catch (URISyntaxException | IOException ex) {
throw new WebToolsException("Unable to perform POST. " + ex.getMessage(), ex);
}
}