On 1 January 2013 19:32, Jean-Marc Spaggiari <[email protected]> wrote:
> Hi,
>
> Is there a way to limit the respons size?
>
> Like, if I call http://my.domain.com/my/page and it's trying to return
> me a 5GB ISO file, I don't want to consume that. I want to abort the
> call as soon as it's over a certain amount of bytes.
>
> If I do response.getEntity() is it going to give the control back only
> when ALL the data will be retreived?
>
You could take a look at HTTP range requests, if you know that the
server will support it.

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

Reply via email to