camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humayun0156 <>
Subject Work with Exchange.HTTP_QUERY
Date Thu, 18 Jul 2013 08:35:58 GMT
I've an url with query parameters which is dynamically generated. i don't
know how many parameters there are. i want to hit the url and get the body.
say my url looks like :
it needs basic authentication.
so i request
Object object = producerTemplate.requestBody("direct:get", url);

and my route is : 
    .setHeader(Exchange.HTTP_METHOD, constant("GET"))

but when i run there is an error. 
The exchange message body is set correctly
Endpoint[direct://epGet] Exchange[Message:]

but it creates the following endPoint which is not correct.
DEBUG DefaultComponent:117 - Creating endpoint

to resolve this query param what should i do? any idea?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message