Friday, 23 October 2015

Apache HTTP Client tutorial

HTTP Client is a client side HTTP transport library. By using this library, you can send and receive HTTP messages. In this tutorial series, you are going to learn how to send GET, POST requests, and receive http responses.

I am going to use following is the maven dependency

<dependency>
         <groupId>org.apache.httpcomponents</groupId>
         <artifactId>httpclient</artifactId>
         <version>4.5.1</version>
</dependency>
      Sending simple GET Request
      Generate URI using URIBuilder
      Working with message headers
      Get response body
      Send HTTP POST request
      Response Handlers
      Set connection timeout

Prevoius                                                 Next                                                 Home

No comments:

Post a Comment