Legacy HTTP client library supporting HTTP/1.0 and HTTP/1.1 protocols with cookie and authentication support.
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.
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());
}
}
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.
Agent activity
0 hits · last 30 days
No traffic data recorded yet.