Yep, you're right. I guess you could take http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/HttpEntity.html#getContent() and pass that through something that counts the bytes before decoding.