两种httpClient区别

org.apache.commons.httpclient.HttpClient 与 org.apache.http.client.HttpClient区别

最近在看httpclient相关的代码

但发现两个包里同样的类名

网上资料是commons这个包下的比较多

请教下这两个类的具体区别

2个回答

有先有后罢了,记得httpclient本来是commons下的一个子项目,后来由于是HTTP相关部分,所以被移到HttpComponents里去了。
PS:话说,要查apache项目的资料最好去apache官网,这样至少不会被误导……

[url]http://hc.apache.org/httpclient-3.x/[/url]
HttpClient was started in 2001 as a subproject of the Jakarta Commons, based on code developed by the Jakarta Slide project. It was promoted out of the Commons in 2004, graduating to a separate Jakarta project. In 2005, the HttpComponents project at Jakarta was created, with the task of developing a successor to HttpClient 3.x and to maintain the existing codebase until the new one is ready to take over. The Commons project, cradle of HttpClient, left Jakarta in 2007 to become an independent Top Level Project. Later in the same year, the HttpComponents project also left Jakarta to become an independent Top Level Project, taking the responsibility for maintaining HttpClient with it.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问