This article shows you how to use Apache HttpClient to send an HTTP GET/POST requests, JSON, authentication, timeout, redirection and some frequent used examples. P.S Tested with HttpClient 4.5.10 <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.10</version> </dependency> package com.mkyong.http; import org.apache.http.HttpEntity; import or
![Apache HttpClient Examples - Mkyong.com](https://cdn-ak-scissors.b.st-hatena.com/image/square/d6b54361d36cf2c1b45d4edb7cc578ae0da4fb9e/height=288;version=1;width=512/https%3A%2F%2Fmkyong.com%2Fwp-content%2Fuploads%2F2019%2F10%2Fhttpclient-logo.png)