hello Karl, thanks for your comment. You're right, my answer was incomplete. I've update the android page of the user guide http://wiki.restlet.org/docs_2.0/13-restlet/266-restlet.html.
Best regards, Thierry Boileau Hi All, > > I've had an eventful few days trying to get POST to work on Android and > thought I'd publish the workaround for this problem. > > As per the example, GET works fine. However, I have a simple POST request > that passes in a User object and returns a List of Users objects. > > This always failed with a: > > Communication Error (1001) - Error while processing a connection > > I tried this in a simple JSE client and it worked fine, so I knew the > server was OK. > > I'd read one of Thierry's posts suggesting you need to register the > ext.HttpClient, however this is not enough as the internal HTTPClient was > always being selected. > > This bit of code will clear the clients and then register the > ext.HTTPClient. > Engine.getInstance().getRegisteredClients().clear(); > Engine.getInstance().getRegisteredClients().add(new > org.restlet.ext.httpclient.HttpClientHelper(null)); > > POST now works fine :-D > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2754360 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2754372

