Registry / http-client / commons-httpclient

commons-httpclient

JSON →
library3.0.1javamavenunverified

Legacy HTTP client library supporting HTTP/1.0 and HTTP/1.1 protocols with cookie and authentication support.

<dependency> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> <version>3.0.1</version> </dependency>
INSTALL
IMPORT
SIG · COMMONS-HTTPCLIENT
C
commons-httpclient
http-clientjavav3.0.1
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.

HttpClient
org.apache.commons.httpclient.HttpClient

Execute a simple HTTP GET request using HttpClient and GetMethod.

import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.GetMethod; public class Example { public static void main(String[] args) throws Exception { HttpClient client = new HttpClient(); GetMethod method = new GetMethod("http://example.com"); client.executeMethod(method); System.out.println(method.getResponseBodyAsString()); } }
Debug
Known issues
breakingCommons HttpClient 3.x is deprecated; use Apache HttpClient 4.x or 5.x instead.
fix
Replace with org.apache.httpcomponents:httpclient (4.x) or org.apache.httpcomponents.client5:httpclient5 (5.x).
affects: >=3.0.0
Upgrade
Version history
3.0.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
26
Resources
commons-httpclient — mvn dependency:get commons-httpclient · libregistry