HttpEntity.consumeContent():
TODO: The name of this method is misnomer. It will be renamed to #finish() in the next major release.
This method is called to indicate that the content of this entity is no longer required. All entity implementations are expected to release all allocated resources as a result of this method invocation. Content streaming entities are also expected to dispose of the remaining content, if any. Wrapping entities should delegate this call to the wrapped entity.
This method is of particular importance for entities being received from a connection. The entity needs to be consumed completely in order to re-use the connection with keep-alive.
especially if keep-alive is on, calling consumeContent() can prevent
a lot of trouble
the trouble I saw when not calling ‘consumeContent()’, was that the
response of a previous request was ‘bleeding’ into the response of the next
request.