Created attachment 27463 [details] patch fixes this bug instantly. When I'm capturing by HTTP proxy (implementation is set as HttpClient4), port number duplicates in Host header as following: GET /somepath HTTP/1.1 Host: somehost:8080:8080 this occurs only when I use non-default port number like as 8080. To fix this bug, suppress Host header's port number on making HTTP request. (patch here as attachment)
Thanks for report and proposal patch. This bug impacting the HC4 and HC3 implementations when we are in JMeter Proxy mode. I've fixed this bug for all HC implementation. URL: http://svn.apache.org/viewvc?rev=1170701&view=rev Log: Bug 51775 - Port number duplicates in Host header when capturing by HttpClient (3.1 and 4.x) Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHCAbstractImpl.java jakarta/jmeter/trunk/xdocs/changes.xml
Repatch. URL: http://svn.apache.org/viewvc?rev=1170866&view=rev Log: Bug 51775 - Port number duplicates in Host header when capturing by HttpClient (3.1 and 4.x) Simplify and improve last fix. Thanks sebb. Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHCAbstractImpl.java