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

Reply via email to