How can I pass a bunch of XML to a RESTful method from Android without putting it into the URL?
问题 I know how to do this in C#, in fact I wrote a tip about it here, but I don't know how to accomplish it in Java/Android. My code is this so far: protected void doInBackground(String... params) { String URLToCall = "http://10.0.2.2:28642/api/DeliveryItems/PostArgsAndXMLFileAsStr"; String result = ""; String stringifiedXML = params[0]; HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(URLToCall); List<NameValuePair> nvp = new ArrayList<NameValuePair>(); nvp.add