HttpEntity.consumeContent() is deprecated since 4.1, using EntityUtils.consume(HttpEntity) instead