What headers do you want to add? Are they to be HTTP query parameters? or HTTP headers?
For dynamic uri's see this FAQ http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html And an alternative is that the http component allows to specify the query parameters in a special header named Exchange.HTTP_QUERY so you can keep the http endpoint uri constant. On Wed, Oct 28, 2015 at 5:33 PM, Ishada <[email protected]> wrote: > I need to access a HTTPS Resource which is using Basic Authentication and It > is a GET Resource. I have written a code in java using URIBuilder and adding > the username, password etc as Headers to the URIBuilder and using Apache > HTTP Client to access the resource and it is working well. Now my > requirement is to implement the same functionality using Apache Camel, Well > I tried using Camel HTTP component and by using Java DSL, But the problem is > I am just able to provide the URI. But how can I add various Headers to this > URI ?. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/HTTPS-Endpoint-to-File-tp5773160.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2nd edition: https://www.manning.com/books/camel-in-action-second-edition
