You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Tim Julien <tj...@limewire.com> on 2008/01/24 21:55:51 UTC
HttpMethodBase.getResponseBodyAsString() analog?
in the new 4.0 stack, is there an analog to
org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString()?
-Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: HttpMethodBase.getResponseBodyAsString() analog?
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Thu, 2008-01-24 at 15:55 -0500, Tim Julien wrote:
> in the new 4.0 stack, is there an analog to
> org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString()?
>
Hi Tim,
This should do the trick
HttpEntity entity = response.getEntity();
if (entity != null) {
String s = EntityUtils.toString(entity);
}
Oleg
> -Tim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org