Content length can't be empty.
You can calculate and specify it yourself, or perhaps HttpClient /
StringEntity can do it for you.
I'd recommend using WireShark or a trivial "echo" http server to aid in
debugging the requests.
-- Kostya
24.08.2010 20:41, Bret Foreman пишет:
So I added the following lines to create the header:
httppost.setHeader("Content-Type", "application/xml");
httppost.setHeader("Content-Length", "");
httppost.setHeader("SERVER-ACTION", API_AddField );
I didn't do anything about adding the POST line.
I'm getting a ClientProtocolException from HttpClient.execute.
Unfortunately there is no detail message in the exception. Any ideas?
--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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