hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject Re: where did EntityEnclosingMethod.getRequestBodyAsString() go?
Date Wed, 11 Apr 2007 05:38:30 GMT
Hello David,

> I inherited some code that uses
> EntityEnclosingMethod.getRequestBodyAsString().  However we are trying 
to
> upgrade to 3.x and it appears it has been removed without a trace!

Since 3.0, the interface RequestEntity represents the request body:
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/RequestEntity.html

You should rewrite your request processing code to work with that 
interface
rather than on the method level.

hope that helps,
  Roland


Mime
View raw message