SyntaxFix
Write A Post
Hire A Developer
Questions
HttpClient is not a class, it is an interface. You cannot use it for development in the way you mean.
HttpClient
What you want is a class that implements the HttpClient interface, and that is CloseableHttpClient.
CloseableHttpClient