But the probleme is that I can't trust the server. I need to make sure
that the client is robust so in case server is failing or not
supporting the HTTP range request, client is still exiting after a
certain quantity of bytes received...

2013/1/1, James Shaw <[email protected]>:
> 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]
>
>

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

Reply via email to