RE: Re: Getting POST parameters out of request
With Restlet 2.0, you can do the following (assume a UserResource class with a createUser() method): public class UserResource extends ServerResource { @Post public Representation createUser(Representation entity) { String xml = entity.getText(); return new StringRepresentation(xml, MediaType.APPLICATION_XML); } } The POST's payload in in the entity object. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2377660
RE: Re: Getting POST parameters out of request
Okay, at Restlet-side I use getRequest().getEntityAsForm() instead of getRequestAttribute() now. At HttpClient side I had to send the parameters as entity and not HttpParams (I tried after realising that getRequestAttribute didn't worked for that). -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2374308