Android, send and receive XML via HTTP POST method
问题 There is a relevant question, but I could not get the answer clearly. I would like to POST a short xml code <aaaLogin inName="admin" inPassword="admin123"/> to a specific URL address over HTTP. The Web service will send me back a XML code. The important part is that I will parse the received XML, and I want to store that as a file. // Create a new HttpClient and Post Header HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://192.168.192.131/"); //URL