jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Re: Sent request with no User-Agent header
Date Thu, 29 Nov 2018 06:59:38 GMT
As per  HttpClient JavaDoc

> This class sets up the following parameters 
> if not explicitly set
> :
> Version: HttpVersion.HTTP_1_1
> NoTcpDelay: true
> SocketBufferSize: 8192
> UserAgent: Apache-HttpClient/release (java 1.5)

I don't think there is an easy way of disabling this (unless you would like
to go for  Reflection

If you don't want the User-Agent header you can switch to "Java"
implementation, the setting lives under "Advanced" tab of the HTTP Request
sampler (or even better  HTTP Request Defaults

, this way the setting will be applied to all the HTTP Request samplers in
its scope and you will not have to revisit each one individually)  

Also be aware that according to JMeter Best Practices  you should always be
using the latest version of JMeter
so consider upgrading to JMeter 5.0 (or whatever is available at  JMeter
Downloads <>   page) on next
available opportunity

Sent from:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message