commonhttpclient依赖
时间: 2023-06-01 15:03:24 浏览: 110
commons-httpclient依赖包
5星 · 资源好评率100%
Commons HttpClient是一种流行的Java HTTP客户端库,可以用于发送HTTP请求和接收HTTP响应。它的Maven依赖如下:
```xml
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
```
该依赖包含了Commons HttpClient的核心类和API。如果要使用HTTPS协议,还需要添加以下依赖:
```xml
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.2</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
```
这些依赖包含了Commons HttpClient使用HTTPS协议所需的类和API。
阅读全文