HttpEntity.consumeContent() deprecated method used.