HttpClient 4 – Do Not Follow Redirects 1. Overview In this article I will show how to configure the Apache HttpClient 4 to stop following redirects. By default, following the HTTP Spec, the HttpClient will automatically follow redirects. For some usecases, that may be perfectly fine, but there are certainly… Continue Reading httpclient-stop-follow-redirect

HttpClient Connection Management 1. Overview In this article, we will go over the basics of connection management within the HttpClient 4. We’ll cover the use of BasichttpClientConnectionManager and PoolingHttpClientConnectionManager to enforce a safe, protocol compliant and efficient use of HTTP connections. 2. The BasicHttpClientConnectionManager for a Low Level, Single Threaded… Continue Reading httpclient-connection-management