Hi

I just tried, the header goes out when it is set on HttpConduit
but it is named as 'BrowserType' which looks like a typo because it is documented to be User-Agent, and I can find no links to BrowserType HTTP header (does not exist),
I'll fix it shortly

Thanks, Sergey

On 09/02/16 15:20, Khare, Aparna wrote:
Thanks a lot Sergey.

I tried both the options
Setting browser type did not work but setting the Sub-Agent in header worked

Thanks for the help,
Aparna

-----Original Message-----
From: Sergey Beryozkin [mailto:sberyoz...@gmail.com]
Sent: Sunday, February 7, 2016 9:46 PM
To: users@cxf.apache.org
Subject: Re: Sub-Agent in logs telling the version of apache cxf

Hi

You can customize it, set a User-Agent header when the clients are
created, ex, in jaxrs-client:client/jaxrs-client:headers, or in
JAXRSClientFactoryBean, or directly on WebClient

Another option is to set it up on HttpConduit, the property is called
'BrowserType' there.

HTH, Sergey


On 06/02/16 09:32, Khare, Aparna wrote:
Dear Colleagues,





     We are using apache CXF 3.0.7 and use Webclient to make an outbound HTTP 
call.



We connect to the external endpoint from our systems .The external system would 
log from which agent the call is being intercepted.



When a cxf client makes a call the logs are writtern with CXF agent and the 
version which is a security concern.Can you tell me how to override the agent 
information.



Best Regards,

Aparna










--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Reply via email to