Joe wrote: > Someone recently posted an HTTP connection example which used: > > import org.apache.commons.httpclient.HttpClient; > import org.apache.commons.httpclient.methods.PostMethod; > > However my Android SDK (installed under Eclipse) does not have these > packages; instead it has org.apache.http.* > > What is the difference? Why are two, apparently similar APIs for REST > calls?
The one with "commons" is referencing the older HttpClient, when it was part of Apache Jakarta Commons. Android 1.0r2 has a more current edition of HttpClient, which is now a first-class Apache project, and was moved into the org.apache.http.* namespace. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---