april wrote: > After I upgraded to 1.0, I found PostMethod is removed. Following is > my old code > > HttpClient client = new HttpClient(); > PostMethod method = new PostMethod(Constants.serverUrl +function); > method.setParameter(SharedConstants.NAME_EMAIL, userName); > method.setParameter(SharedConstants.NAME_PASS, passWord) > int statusCode=client.executeMethod(method); > > I migrated HttpClient to DedaultHttpClient. But what is the new method > for PostMethod?
Android is now using a more current version of the HttpComponents, which uses a different set of classes (HttpPost instead of PostMethod). For documentation on the HttpComponents beyond those in the Android SDK, visit: http://hc.apache.org Specifically, you probably want the HttpClient sub-project. Here is a page of examples: http://hc.apache.org/httpcomponents-client/examples.html -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: All titles, revisions, & ebook formats, just $35/year --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---