In the request header:
postMethod.setRequestHeader(new Header("Content-Length", "227"));
Remove (comment out).
Content-Length is not set
In the request header:
postMethod.setRequestHeader(new Header("Content-Length", "227"));
Remove (comment out).
Content-Length is not set