官方的例子:http://hc.apache.org/httpcomponents-client-4.3.x/httpclient/examples/org/apache/http/examples/client/ClientWithResponseHandler.java
我从官方http://hc.apache.org/下载的包里面根本找不到org.apache.http.HttpEntity,即找不到HttpEntity这个类!
------解决方案--------------------
用maven 找把
https://repository.sonatype.org/index.html#nexus-search;classname~org.apache.http.HttpEntity
------解决方案--------------------
在core包里
------解决方案--------------------
你肯定没下全
commons-codec-1.6.jar
commons-logging-1.1.1.jar
fluent-hc-4.2.5.jar
httpclient-4.2.5.jar
httpclient-cache-4.2.5.jar
httpcore-4.2.4.jar
httpmime-4.2.5.jar
这几个都要