I'm using Apache Camel's HTTP 4 component for performing a HTTP-PUT request. Before sending the request, I set custom and application dependent headers. One of the header key is 'Date'.
But unfortunately, Camel-HTTP4 ignores the Date-Header and does not send it to the remote server:
.setHeader("Date", simple("${date:now:EEE, dd MMM yyyy HH:mm:ss z}"))
.toD("https4:{{myprops.uri}}?bridgeEndpoint=true" +
"&throwExceptionOnFailure=false" +
"&mapHttpMessageBody=true" +
"&httpMethod=" + HttpMethods.PUT +
"&connectTimeout={{myprops.connectTimeout}}" +
"&socketTimeout={{myprops.socketTimeout}}").id("https-connect")
// Date is not sent
Does anybody know why the header is removed and how I can configure that the header is kept?
Thx