You are using XML and you must obey the xml rules.

So you would need to escape your & as &



On Fri, Nov 15, 2013 at 10:48 AM, sabri.bousselmi <[email protected]> wrote:
> I'm using camel version 2.12.1.
> i'm using http component with authentication and i'm trying to keep the
> passwor as it is without any encoding.
>
> below my URI:
>
> <to
> uri="http://blablabla?authMethod=Basic&amp;authUsername=sabri&amp;authPassword=RAW(sabri&)"/>
> this will end up with non xml valid.
> 1- I'm asking if it is a bug or RAW option it's only used for java
> DSL.(nothing mentioned in the online documentation).
> 2- authMethod and authUsername parameters must be used the uri and can't be
> part of the Message headers Exchange.HTTP_URI. (also nothing mentioned in
> the online documentation).
>
> Thanks for any help.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/RAW-option-dosen-t-work-in-case-of-Spring-DSL-URI-tp5743346.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to