Setting User Agent for Apache HttpClient 4

1. Overview In this tutorial, we will look at how we can set the user agent for Apache HttpClient 4. 2. Default User Agent Apache HttpClient sends ...

Continue Reading

Post Form, File And JSON using Apache HttpClient 4

1. Overview In this tutorial, we're going to look at how we can post forms, files and JSON data using Apache HttpClient 4. In essence, we'll execut...

Continue Reading

Retrying Requests using Apache HttpClient 4

1. Overview Apache HttpClient provides support for retrying requests. In this tutorial, we'll look at how we can configure the request retry behavi...

Continue Reading

Handling Cookies using Apache HttpClient 4

1. Overview In this tutorial, we're going to look at how we can handle cookies using Apache HttpClient 4. 2. Handling Cookies The CookieStore inter...

Continue Reading

Configuring Timeout for Apache HttpClient 4

1. Overview In this tutorial, we'll look at how we can configure the timeout values for Apache HttpClient 4. By configuring the timeout values, we ...

Continue Reading

Connection Pooling using Apache HttpClient 4

1. Overview In this tutorial, we're going to investigate how we can configure the connection pooling for Apache HttpClient 4. By configuring the co...

Continue Reading

Using ResponseHandler with Apache HttpClient 4

1. Overview In this tutorial, we'll look at how we can use the ResponseHandler interface to consume the Apache HttpClient responses. The ResponseHa...

Continue Reading

Quick Guide to Apache HttpClient 4

1. Overview Apache HttpClient provides extensive functionality to work with the HTTP resources. Hence it is one of the most used HTTP clients in th...

Continue Reading