26

I want to have a seperate project that runs my server communication code in a normal JVM for the purposes of integration testing. This code uses these libraries which are build into the Android Framework...

http://developer.android.com/reference/org/apache/http/client/package-summary.html

Does anybody know what version of Apache HTTP Client this is supposed to be? I want to run it without the Android tests which are painfully slow.

benstpierre
  • 32,833
  • 51
  • 177
  • 288

4 Answers4

43

The copy of HttpClient in Android does not actually match any of the released versions, as this mailing list trail shows. Google seem to have taken an arbitrary snapshot of the development code base and used that.

The closest matches seem to be:

  • httpcore-4.0-beta2.jar
  • httpclient-4.0-beta1.jar

Seems like a colossal cock-up to me.

skaffman
  • 398,947
  • 96
  • 818
  • 769
2

4.x. I'm not sure on the minor version code, but the latest versions of httpmime and apache-mime4j work when included in my code alongside the HttpClient included in Android 1.5.

synic
  • 26,359
  • 20
  • 111
  • 149
1

It doesn't appear android 1.5 is using apache 4.1.x. mvn dependency:tree shows the following for android 4.0.1.2

com.google.android:android:jar:4.0.1.2:provided
[INFO] |  +- commons-logging:commons-logging:jar:1.1.1:provided
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.0.1:provided
[INFO] |  |  \- org.apache.httpcomponents:httpcore:jar:4.0.1:provided 
1

You can download the exact source included in the platform.

Heath Borders
  • 30,998
  • 16
  • 147
  • 256