Registry / http-client / httpclient

httpclient

JSON →
library4.5.14javamavenunverified

Apache HttpComponents Client provides a robust HTTP client library for sending requests and handling responses in Java.

<dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.14</version> </dependency>
INSTALL
IMPORT
SIG · HTTPCLIENT
H
httpclient
http-clientjavav4.5.14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CloseableHttpClient
org.apache.http.impl.client.CloseableHttpClient

A simple HTTP GET request using Apache HttpClient.

import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.CloseableHttpResponse; public class Example { public static void main(String[] args) throws Exception { try (CloseableHttpClient httpClient = HttpClients.createDefault()) { HttpGet request = new HttpGet("http://example.com"); try (CloseableHttpResponse response = httpClient.execute(request)) { System.out.println(response.getStatusLine()); } } } }
Debug
Known issues
breakingHttpClient 4.x is in maintenance mode; consider migrating to HttpClient 5.x for new projects.
fix
Use org.apache.httpcomponents.client5:httpclient5 for the latest features and support.
affects: >=4.0.0 <5.0.0
Upgrade
Version history
4.5.14latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
26
OpenAI (training)
1
Resources
httpclient — mvn dependency:get httpclient · libregistry