RE: Re: Getting POST parameters out of request

2009-07-22 Thread webpost
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).

Getting POST parameters out of request

2009-07-21 Thread webpost
How is this possible? I'm using Apache HTTPClient to make a POST request, but at my resource are no parameters set (else the one parsed into the url). Isn't it possible to make a POST request without using Restlet and putting the post object into a Representation object? I'm using 2.0-M3.

Getting POST parameters out of request

2009-07-21 Thread webpost
How is this possible? I'm using Apache HTTPClient to make a POST request, but at my resource are no parameters set (else the one parsed into the url). Isn't it possible to make a POST request without using Restlet and putting the post object into a Representation object? I'm using 2.0-M3.

Re: Getting POST parameters out of request

2009-07-21 Thread Fabian Mandelbaum
Parameters as in URL?param1=value1param2=value2... ? If so, you need to do something like this on your resource's doInit() method: Form query = getRequest().getResourceRef().getQueryAsForm(); String value1 = query.getFirstValue(param1); String value2 = query.getFirstValue(param2); I hope to