Discussion:
Send request without User-Agent header
Antony Bowesman
6 years ago
Permalink
Using JMeter 3.3

How can I send an http request without a User-Agent header.

I have a HeaderManager for the request, but if I don't specify as UA header, it sends something like

User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_102)

whereas if I specify User-Agent as an empty value, it will send an empty UA header.

It seems like HttpProtocolParams will add the http.useragent default property, so will effectively mandate the UA header.

Antony
Antony Bowesman
6 years ago
Permalink
Using JMeter 3.3



How can I send an http request without a User-Agent header.



I have a HeaderManager for the request, but if I don’t specify as UA
header, it sends something like



User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_102)



whereas if I specify User-Agent as an empty value, it will send an empty UA
header.



It seems like HttpProtocolParams will add the http.useragent default
property, so will effectively mandate the UA header.



Antony
Philippe Mouawad
6 years ago
Permalink
Hello,
Please open an enhancement request here:

-

https://jmeter.apache.org/issues.html


For now I don’t think it’s possible


Regards
Post by Antony Bowesman
Using JMeter 3.3
How can I send an http request without a User-Agent header.
I have a HeaderManager for the request, but if I don’t specify as UA
header, it sends something like
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_102)
whereas if I specify User-Agent as an empty value, it will send an empty UA
header.
It seems like HttpProtocolParams will add the http.useragent default
property, so will effectively mandate the UA header.
Antony
--
Cordialement.
Philippe Mouawad.
Antony Bowesman
6 years ago
Permalink
@Philippe - https://bz.apache.org/bugzilla/show_bug.cgi?id=62977
...
Loading...