apache.http 和 apache.commons.httpclient 库有什么区别?

发布于 2024-10-30 12:59:14 字数 34 浏览 3 评论 0原文

何时使用其中之一? 我正在为 Android 编程。

When to use one or the other?
I am programing for Android.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小…红帽 2024-11-06 12:59:14

Android 两者都没有,所以这并不重要。在 Android 中使用 org.apache.http.* 类,因为它们内置于操作系统中。

包中带有 commons.httpclient 的类引用原始 Apache Jakarta Commons HttpClient 代码库。 Android 已经有大约三年没有这些类了,而较新的 org.apache.http.* 类是 Android 内部和外部的最新类。

Android has neither, so it does not really matter. Use org.apache.http.* classes in Android, since they are built into the OS.

Classes with commons.httpclient in their package refer to the original Apache Jakarta Commons HttpClient code base. Android has not had these classes in it for about three years, and the newer org.apache.http.* classes are what's current, both inside and outside of Android.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文