hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Smith <deaf....@gmail.com>
Subject How many bytes did I get?
Date Wed, 24 Nov 2010 12:59:32 GMT
Hello everyone!
I describe my situation.

I download some content from some sites by HttpClient.
I send GET request and get HttpEntity to byte array:

bEntity = EntityUtils.toByteArray(entity);
then I save bEntity in file.

I can see content size by entity.getContentLength(),
but I need to know how many bytes I've already got when I'm downloading content.

Has HttpClient or HttpEntity got some implements for it?

Thanks for your help!

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

View raw message