Hi Guys,

I need to call different URLs all depending on a earlier route.
So based on a earlier header I need to update the URL that needs to be called.

I have tried:

.setHeader(Exchange.ACCEPT_CONTENT_TYPE, constant("application/json"))
.setHeader(Exchange.HTTP_METHOD, constant("GET"))
.setHeader(Exchange.HTTP_CHARACTER_ENCODING, constant("UTF-8"))                 
        
.to("http://localhost:8080${header.metadataUrl}”);

I have also tried:

.setHeader(Exchange.ACCEPT_CONTENT_TYPE, constant("application/json"))
.setHeader(Exchange.HTTP_METHOD, constant("GET"))
.setHeader(Exchange.HTTP_CHARACTER_ENCODING, constant("UTF-8"))                 
        
.toF("http://localhost:8080";, header("metadataUrl”));


But none of those worked.. If I do a  log(${header.metadataUrl}) it prints out 
the correct url.

/Steffen

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to