title: Problems when reusing a org.apache.commons.httpclient.methods.PostMethod object
body: <p>I've noticed that if I reuse a PostMethod object by calling setRequestEntity(...), there are errors on the server side because the request is not parsed correctly. It seems as though the length of the body of the request is set the first time I call setRequestEntity, and this length is not being reset after the second time I call setRequestEntity.</p>
  
  <p>Everything works fine if I use a separate PostMethod object for each request, but is there a way to reuse a PostMethod object for different requests since calling setRequestEntity(...) alone is not sufficient to update the content of the request?</p>