You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Antony Bowesman <an...@gmail.com> on 2018/12/02 22:37:40 UTC

Send request without User-Agent header

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

Re: Send request without User-Agent header

Posted by Antony Bowesman <an...@gmail.com>.
@Philippe - https://bz.apache.org/bugzilla/show_bug.cgi?id=62977

On Mon, 3 Dec 2018 at 09:47, Philippe Mouawad <ph...@gmail.com>
wrote:

> Hello,
> Please open an enhancement request here:
>
> -
>
> https://jmeter.apache.org/issues.html
>
>
> For now I don’t think it’s possible
>
>
> Regards
> On Sunday, December 2, 2018, Antony Bowesman <an...@gmail.com>
> wrote:
>
> > 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.
>

Re: Send request without User-Agent header

Posted by Philippe Mouawad <ph...@gmail.com>.
Hello,
Please open an enhancement request here:

-

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


For now I don’t think it’s possible


Regards
On Sunday, December 2, 2018, Antony Bowesman <an...@gmail.com>
wrote:

> 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.