I want to use Apache Http Client my Java program to interact with the rest webservice. I want to know the dependency which I should add to my pom.xml file.
What is apache http client maven dependency code?
Apache Http Client is used to connect to the HTTP server and perform all the activities against it.
Here is the code that you can add into your pom.xml file:
<dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.12</version> </dependency>