[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16710464#comment-16710464
 ] 

Gary Gregory commented on HTTPCLIENT-1952:
------------------------------------------

That brings up the general case: Should we have a more general setting like 
{{enableHeader(String headerName, boolean enable)}}, so you could say 
{{enableHeader("User-Agent", false)}} where there is a suitable String constant 
someplace in HttpCore or Client.

Gary

> Allow default User Agent to be disabled
> ---------------------------------------
>
>                 Key: HTTPCLIENT-1952
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1952
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpCache
>    Affects Versions: 4.5.6
>            Reporter: Antony Bowesman
>            Priority: Minor
>
> There is no way to disable the User-Agent header. In any kind of micro 
> service architecture, where UA header is irrelevant, the header cannot be 
> removed.
> This has been seen as an issue using JMeter, see link
> [https://bz.apache.org/bugzilla/show_bug.cgi?id=62977#c1]
> See comment #1 there from [~michael-o] 
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to