On Thu, Jul 12, 2012 at 12:51 PM, andrefe <[email protected]> wrote:
> Using HttpClient 4.2, I was wondering why the capability of retrieving the
> raw byte content that is parsed in a HTTP response is not supported: am I
> missing something?
>
> In other words, is not possible to obtain the very same output of a GET
> request performed via telnet relying only on HttpClient methods?

You're talking about not just the body, but all the headers? Getting
the byte[] of the response body is pretty easy
(response.getEntity().getContent() returns an InputStream). Don't know
about all the socket traffic.

You can log the traffic easily, for debugging purposes, if that's what
you're after.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to