Apache Http Client



Apache HttpClient - Using Proxy - A Proxy server is an intermediary server between the client and the internet. Proxy servers offer the following basic functionalities −. HttpClient Overview. The Hyper-Text Transfer Protocol (HTTP) is perhaps the most significant protocol used on the Internet today. Web services, network-enabled appliances and the growth of network computing continue to expand the role of the HTTP protocol beyond user-driven web browsers, while increasing the number of applications that require HTTP support.

HttpComponents Downloads

We recommend you use a mirror to download our release builds, but you must verify the integrity of the downloaded files using signatures downloaded from our main distribution directories. Recent releases (48 hours) may not yet be available from the mirrors.

You are currently using https://apache.mirror.iphh.net/. If you encounter a problem with this mirror, please select another mirror. If all mirrors are failing, there are backup mirrors (at the end of the mirrors list) that should be available.

The KEYS link links to the code signing keys used to sign the product. The PGP link downloads the OpenPGP compatible signature from our main site. The sha512 link downloads the SHA 512 checksum from the main site.

HttpClient 5.0.3 (GA)

KEYSRelease Notes

Binary

  • 5.0.3.tar.gz [sha512] [pgp]
  • 5.0.3.zip [sha512] [pgp]

Source

  • 5.0.3.tar.gz [sha512] [pgp]
  • 5.0.3.zip [sha512] [pgp]

HttpCore 5.1 (GA)

KEYSRelease Notes

Binary

  • 5.1.tar.gz [ sha512] [ pgp]
  • 5.1.zip [ sha512] [ pgp]

Source

  • 5.1.tar.gz [ sha512] [ pgp]
  • 5.1.zip [ sha512] [ pgp]

HttpClient 4.5.13 (GA)

KEYSRelease Notes

Binary

  • 4.5.13.tar.gz [sha512] [pgp]
  • 4.5.13.zip [sha512] [pgp]

Source

  • 4.5.13.tar.gz [sha512] [pgp]
  • 4.5.13.zip [sha512] [pgp]

Recent releases of HttpClient can be found here

HttpCore 4.4.14 (GA)

KEYSRelease Notes

Binary

  • 4.4.14.tar.gz [sha512] [pgp]
  • 4.4.14.zip [sha512] [pgp]

Source

  • 4.4.14.tar.gz [sha512] [pgp]
  • 4.4.14.zip [sha512] [pgp]

Recent releases of HttpCore can be found here

HttpAsyncClient 4.1.4 (GA)

KEYSRelease Notes

Binary

  • 4.1.4.tar.gz [sha512] [pgp]
  • 4.1.4.zip [sha512] [pgp]

Source

  • 4.1.4.tar.gz [sha512] [pgp]
  • 4.1.4.zip [sha512] [pgp]

HttpClient 5.1 BETA1

KEYSRelease Notes
Apache http client jar file download

Binary

Apache Http Client Kerberos

  • 5.1-beta1.tar.gz [sha512] [pgp]
  • 5.1-beta1.zip [sha512] [pgp]

Source

  • 5.1-beta1.tar.gz [sha512] [pgp]
  • 5.1-beta1.zip [sha512] [pgp]

Older releases

Old releases are available from the archives.

The Hyper-Text Transfer Protocol (HTTP) is perhaps the most significant protocol used on the Internet today. Web services, network-enabled appliances and the growth of network computing continue to expand the role of the HTTP protocol beyond user-driven web browsers, while increasing the number of applications that require HTTP support.

Although the java.net package provides basic functionality for accessing resources via HTTP, it doesn’t provide the full flexibility or functionality needed by many applications. HttpAsyncClient seeks to fill this void by providing an efficient, up-to-date, and feature-rich package implementing the client side of the most recent HTTP standards and recommendations.

Designed for extension while providing robust support for the base HTTP protocol, HttpAsyncClient may be of interest to anyone building HTTP-aware client applications based on asynchronous, event driven I/O model.

Documentation

Apache Http Client Close_wait

Apache Http Client

Apache Http Client Connection Pool

  1. Quick Start - contains a simple, complete example of asynchronous request execution.
  2. HttpAsyncClient Examples - a set of examples demonstrating some of the more complex use scenarios.
  3. Javadocs

Features

  • Standards based, pure Java, implementation of HTTP versions 1.0 and 1.1
  • Full implementation of all HTTP methods (GET, POST, PUT, DELETE, HEAD, OPTIONS, and TRACE) in an extensible OO framework.
  • Supports encryption with HTTPS (HTTP over SSL) protocol.
  • Transparent connections through HTTP proxies.
  • Tunneled HTTPS connections through HTTP proxies, via the CONNECT method.
  • Connection management support concurrent request execution. Supports setting the maximum total connections as well as the maximum connections per host. Detects and closes expired connections.
  • Persistent connections using KeepAlive in HTTP/1.0 and persistence in HTTP/1.1
  • The ability to set connection timeouts.
  • Source code is freely available under the Apache License.
  • Basic, Digest, NTLMv1, NTLMv2, NTLM2 Session, SNPNEGO and Kerberos authentication schemes.
  • Plug-in mechanism for custom authentication schemes.
  • Automatic Cookie handling for reading Set-Cookie: headers from the server and sending them back out in a Cookie header when appropriate.
  • Plug-in mechanism for custom cookie policies.
  • Support for HTTP/1.1 response caching.
  • Support for pipelined request execution and processing.
Apache http client kerberos

Standards Compliance

HttpAsyncClient strives to conform to the following specifications endorsed by the Internet Engineering Task Force (IETF) and the internet at large:

Apache Http Client Maven Dependency

  • RFC 1945 Hypertext Transfer Protocol – HTTP/1.0
  • RFC 2616 Hypertext Transfer Protocol – HTTP/1.1
  • RFC 2617 HTTP Authentication: Basic and Digest Access Authentication
  • RFC 2109 HTTP State Management Mechanism (Cookies)
  • RFC 2965 HTTP State Management Mechanism (Cookies v2)