org.apache.commons.httpclient.
时间: 2023-04-16 07:03:25 浏览: 63
org.apache.commons.httpclient是一个Java HTTP客户端库,它提供了一组易于使用的API,用于发送HTTP请求和处理响应。它支持HTTP/1.0和HTTP/1.1协议,并提供了对HTTPS的支持。它是Apache软件基金会的一个开源项目,可以在商业和非商业项目中免费使用。
相关问题
gradle 依赖 org.apache.commons.httpclient.
如果你想在 Gradle 中添加 org.apache.commons.httpclient 作为依赖,你需要在你的 `build.gradle` 文件中添加以下代码:
```groovy
dependencies {
implementation 'commons-httpclient:commons-httpclient:3.1'
}
```
这将向你的项目中添加 Apache HttpClient 3.1 的依赖。请注意,这是一个旧版本的 HttpClient,如果你想使用最新版本的 HttpClient,你需要使用其他依赖。
如果你需要更多关于 Gradle 依赖管理的信息,请访问 [Gradle 官方文档](https://docs.gradle.org/current/userguide/dependency_management.html)。
org.apache.commons.httpclient.HttpClient 的maven
依赖坐标是:
```
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
```
如果你使用的是 Maven 2,还需要在 pom.xml 文件中添加 Apache 坐标库的引用:
```
<repositories>
<repository>
<id>Apache</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>
```