Hi What version of Camel do you use?
On Thu, Mar 26, 2015 at 7:27 AM, Liliana.Neagul <liliana.iovanov...@gmail.com> wrote: > Hi, > > I'm trying to send from a camel route an HTTP request using an encoded query > parameter (for symbol euro > €), and it seems that camel decode the parameter and sent it to httpclient > decoded. Httpclient fails then with 'Invalid query' exception. > > My route is: > from("jetty:http://localhost:5443/getCurrency") > .setHeader(Exchange.HTTP_METHOD, constant("GET")) > .setHeader(Exchange.HTTP_URI, simple(Constants.PATH+ > "/code=EUR&symbol=%E2%82%AC&places=2")) > .to("http://host"); > > When Camel constructs the URI object, from Exchange, the query parameter > 'symbol' is decoded in '€'. > > Did someone succeed to pass encoded params? should I set some new headers to > camel route? > > Thanks for your help, > Liliana > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Apache-Camel-decodes-HTTP-query-params-and-httpclient-fails-with-Invalid-query-exception-tp5764794.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/