hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Spencer <tony.spen...@gmail.com>
Subject How to limit the response size
Date Thu, 21 Jul 2005 17:47:09 GMT
I'd like to limit the size of the response but don't know how.  For
instance, if the response body is greater than 100k I would like to
close the connection to the site.  How can I go about doing this?  I
see the available method param : BUFFER_WARN_TRIGGER_LIMIT but it only
seems to control warning logging.

Currently I receive the response body like so:
byte[] bytes = method.getResponseBody();

Any help greatly appreciated.

To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org

View raw message