Bug 56272

Summary: MirrorServer should support query parameters for status and redirects
Product: JMeter Reporter: Sebb <sebb>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 2.11   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Sebb 2014-03-15 17:07:08 UTC
The MirrorServer currently supports returning a different status by using the X-ResponseStatus header and redirects by using the appropriate value for X-SetHeaders.

However, headers are resent for redirected requests which means that the redirect location cannot be the mirror server as that causes an redirect loop.

For additonal flexibility it would be useful to be able to use query parameters to set the status and redirect location.
Comment 1 Sebb 2014-03-15 17:18:08 UTC
URL: http://svn.apache.org/r1577903
Log:
MirrorServer should support query parameters for status and redirects
Bugzilla Id: 56272

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
    jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java
    jmeter/trunk/xdocs/changes.xml
Comment 2 Sebb 2014-03-15 17:26:09 UTC
URL: http://svn.apache.org/r1577906
Log:
MirrorServer should support query parameters for status and redirects
Oops! Allow for queries that don't have "=" in them
Bugzilla Id: 56272