I need to send a POST request with token. Something like this: curl -H "Authorization: [token]" -X POST --data-binary @filename.json 'http://myhost.com/someurl'
I have the following code: context.addRoutes(new RouteBuilder() { public void configure() { from("file:data/out?fileName=filename.json&noop=true") .setHeader(Exchange.HTTP_METHOD, constant(org.apache.camel.component.http.HttpMethods.POST)) .to("http://myhost.com/someurl"); } How do I add this [token] to the request? -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-authenticate-with-Camel-tp4590064p4590064.html Sent from the Camel - Users mailing list archive at Nabble.com.