apache.http 和 apache.commons.httpclient 库有什么区别?
何时使用其中之一? 我正在为 Android 编程。
When to use one or the other?
I am programing for Android.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
何时使用其中之一? 我正在为 Android 编程。
When to use one or the other?
I am programing for Android.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
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 newerorg.apache.http.*
classes are what's current, both inside and outside of Android.