Hi,
I've used to get a URL using HTTP component. My route looks like:
from("direct:epGet")
                .setHeader(Exchange.HTTP_METHOD, constant("GET"))
                .setProperty("url", simple("${body}"))
                .setHeader(Exchange.HTTP_CHARACTER_ENCODING,
constant("UTF-8"))
                .recipientList(simple("${body}&" + epiAuthenticationString))
                .convertBodyTo(Document.class)
                .process(objectCreationProcessor);

i sent the body as :
http://myhost.com/user?fromDate=2013-07-24T10%3A57%3A35%2B0600 but when it
creating the End Point URI it looks like
http://myhost.com/user?fromDate=2013-07-24T10%3A57%3A35+0600 
the %2B is replaced by + sign that so it not fetch the body and send 400
error.



--
View this message in context: 
http://camel.465427.n5.nabble.com/HTTP-component-URL-character-endoding-tp5736196.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to