See the authentication and proxy section at http://camel.apache.org/http
You can set the auth to basic and username/password On Thu, Oct 29, 2015 at 7:41 AM, Ishada <[email protected]> wrote: > They are HTTP headers. I have tried to implement it as follows but it is > still not working > > from("direct:start") > > .setHeader(Exchange.HTTP_METHOD, constant("GET")) > .process(new Processor() { > public void > process(Exchange exchange) > > throws Exception { > > System.out.println("Hi From Processor"); > > HttpBasicAuthRestClient http = new HttpBasicAuthRestClient( > > "https://someurl", > > "", "", > > ""); > > exchange.getIn() > > .setHeaders(http.getHeaderMap()); > > } > }) > .to("https4://someurl") > .process(new Processor() { > public void > process(Exchange exchange) > > throws Exception { > > System.out.println(exchange.getIn().getBody() > > .toString()); > > } > }); > I am not getting anything on the console. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/HTTPS-Endpoint-to-File-tp5773160p5773175.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
