Hi!

I tried to make an HTTP PUT request to send an xml file to a server.
Something like:

DefaultHttpClient httpClient = new DefaultHttpClient();
HttpPut httpPut = new HttpPut(url_encoded);

httpPut.setEntity(new StringEntity("<the xml goes here>"));
httpPut.setHeader("Content-Type", "application/x-www-form-
urlencoded");

HttpResponse response = httpClient.execute(httpPost);

When I check what is being sent, using WireShark, I see the request
doesn't contain the XML file I posted, as it's request body is
empty... What am I doing wrong?

Best regards!
gunar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to