Usage of consumeContent() of HttpEntity
What is the purpose of consumeContent() of class or org.apache.http.HttpEntity in Android? When should one use it ane can it have side effects? I'm trying to fix a bug in an app which makes requests to a server using HttpClient and sometimes if one particular request fails it will subsequently fail despite the fact that internet is OK. The app calls this method at the end of input stream read. As @Sotirios suggested, HttpEntity.consumeContent() is deprecated so please use EntityUtils.consume(HttpEntity) when feasible. Let's then broadly talk about consuming an HttpEntity . Consuming an