I'm using a HttpClient in a Java desktop application. I've added httpclient-4.0.1.jar and httpmime-4.0.1.jar to the build path, but I receive the error 'The type org.apache.http.HttpResponse cannot be resolved. It is indirectly referenced from required .class files'. Does anyone know which dependency/jar I'm missing?
Probably you are missing httpcore jar.
That class is part of the HttpCore library, here's a link showing it's uses:
http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/class-use/HttpResponse.html
You'll need to include the jar in your classpath / lib.
I think you'll also need:
httpcore-4.x.x.jar
http://findjar.com/class/org/apache/http/HttpResponse.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With