Closed mstn closed 12 years ago
The problem is a deprecated method in ProxyHttp.java
private void handleStandard(EntityEnclosingMethod methodProxyRequest,
HttpServletRequest httpServletRequest) throws IOException {
try {
// this method is deprecated!
methodProxyRequest.setRequestBody(httpServletRequest.getInputStream());
} catch (IOException e) {
throw new IOException(e);
}
}
The correct use is
methodProxyRequest.setRequestEntity(new InputStreamRequestEntity(httpServletRequest.getInputStream()));
How to replicate the bug
The http post request made by the HttpProxy does not contain post data.