Removing the "Host" and "org.apache.cxf.request.uri" headers from the camel exchange -


I have a problem deleting the "host" and "org.apache.cxf.request.uri" headings from these camels I am using a CXF client in the exchange so that I can call at the end of a rest. But before calling, I used the removed header tag and removed some unnecessary headers from the exchange. Some headers are removed but I was unable to delete the header "host" and "org.apache.cxf.request.uri". They are temporarily removed from the flow immediately after the header call to be removed. But they appear in the call headers when CXF uses RS Client. Below my scenario is a sample.

............................... ........ .................. $ {property.asd} == true & amp; Amp; $ {Property.afd} == true

** gt; ** & lt; SetHeader headerName = "CamelCxfRsUsingHttpAPI" & gt; & Lt; Continuous & gt; True & lt; / Continuous & gt; & Lt; / SetHeader & gt; & Lt; SetHeader headerName = "camel htp method" & gt; & Lt; Continuous & gt; Put & lt; / Continuous & gt; & Lt; / SetHeader & gt; & Lt; SetHeader headerName = "camel htmlpath" & gt; & Lt; Continuous & gt; / Partner / managepartnerprofile & lt; / Continuous & gt; & Lt; / SetHeader & gt; & Lt; From Yuri = "CXFR: Bean: Eccent" /> & Lt; / When & gt;

..................................... .. ... ............................

** & lt; Route & gt; & Lt; From Yuri = "Direct: RemovedAudio Header" /> & Lt; RemoveHeaders pattern = "CamelCxfRsResponseGenericType | org.apache.cxf.request.uri | OumLacksFmessage | CamelHPRPSPonsecode Hosts" /> & Lt; / Path & gt; **

I did some tests and these headers came to know that CXF with Webclient It seemed to be about making requests and not considered as the HTTP Protocol header.

You can use the camel-HT or camel-http4 endpoint if you do not want to send those headers to the server.


Comments