It's demonstrated right at the top of
http://hc.apache.org/httpcomponents-client/tutorial/html/fundamentals.html
- that will work for both chunked and non-chunked responses.

As you probably know, you won't be able to call getContentLength() on
a chunked response entity. You just have to read the InputStream until
EOF.

Thanks,

Sam


2009/12/12 Florent Georges <[email protected]>:
>  Hi,
>
>  I send a GET request to a server which responds with a chunked
> entity content.  I've looked in the documentation, but I only
> found info about how to produce chunked content in a request, not
> about how to consume chunked content from a response.
>
>  Did I miss something?  How can I retrieve the entity content?
> I use HttpCore 4.0.1 and HttpClient 4.0.1.
>
>  Regards,
>
> --
> Florent Georges
> http://www.fgeorges.org/
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

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

Reply via email to