Re: restlet component GET request and query string parameters

2011-03-25 Thread William Tam
The issue with setting queries in the request URI has been resolved. Please see https://issues.apache.org/jira/browse/CAMEL-3808 Regards. On 03/18/2011 10:18 AM, mat127 wrote: Hello, I am using the camel-restlet component to build a REST client calling some 3rd party application RESTful AP

Re: restlet component GET request and query string parameters

2011-03-21 Thread William Tam
RE: Setting request query string at runtime We can enhance camel-restlet component so that it can read Camel message header "CamelHttpQuery" and set its value in the request URI. I can look into that. If you'd like to submit a patch, it would be appreciated. RE: Custom headers not getting in

Re: restlet component GET request and query string parameters

2011-03-21 Thread mat127
Hello William, thank you for your answer too. Note that my problem is that the parameter that I want to fill into the GET query has to be set during the runtime (imagine item id or something similar that varies for each request). So I cannot define the route as you suggested where the locale param

Re: restlet component GET request and query string parameters

2011-03-21 Thread mat127
Hello Claus, thank you for your answer. As for the version I am using Camel 2.6.0 deployed inside jetty-7.2.2.v20101205. I tried the {} placeholders you suggested but unfortunately without any effect. I modified the route as: > > >

Re: restlet component GET request and query string parameters

2011-03-20 Thread William Tam
I think if your route is below, the query "locale=cs_CZ" will be added to the actual GET request's query string (but not the "reserved" queries/options as documented in the wiki such as CamelHttpMethod). from("direct:test").to("restlet:http://localhost:8089?locale=cs_CZ&CamelHttpMethod=GET";)

Re: restlet component GET request and query string parameters

2011-03-18 Thread Claus Ibsen
Hi What version of Camel are you using? Usually you add parameters to GET using { } placeholders. /foo/bar/{id} And then provide id as a header with the value. On Fri, Mar 18, 2011 at 3:18 PM, mat127 wrote: > Hello, > > I am using the camel-restlet component to build a REST client calling s