Am 31.07.2015 um 20:10 schrieb Felix Schumacher:
Am 31.07.2015 um 13:47 schrieb Aliaksei Ilkiu:
It seams to me that overwriting Host header by adding it into HTTP Header Manager works only partially: port gets overwritten to actual port.
So how can I pass my value for port portion of Host header?

Example:
In HTTP Header Manager I added
<stringProp name="Header.name">Host</stringProp>
<stringProp name="Header.value">myhost.com:443</stringProp>

But I see in View Results Tree

GET https://127.0.0.1:9443/test.html

[no cookies]

Request Headers:
Connection: keep-alive
Host: myhost.com:9443

Tested with JMeter 2.13 r1665067
Which http client implementation do you use?

I have tested all implementations and found that:

 httpclient 4 will replace the port with the one from the sampler
 httpclient 3 will strip the port from the host header entirely
 javaclient will leave host header as is

That seems to be a bit inconsistent.

That behaviour seems a result from fixing https://bz.apache.org/bugzilla/show_bug.cgi?id=51775.

Regards,
 Felix


Regards,
 Felix



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



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

Reply via email to