Bug 55756

Summary: HTTP Mirror Server : Add ability to set Headers
Product: JMeter - Now in Github Reporter: Philippe Mouawad <p.mouawad>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: REOPENED ---    
Severity: enhancement CC: p.mouawad
Priority: P2    
Version: 2.10   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Philippe Mouawad 2013-11-07 14:41:25 UTC
Add X-SetHeaders special request header to make mirror return these headers.

Separator for headers would be |
Syntax would be:
headerA=valueA|headerB=valueB
Comment 1 Philippe Mouawad 2013-11-07 14:46:37 UTC
Date: Thu Nov  7 14:42:28 2013
New Revision: 1539664

URL: http://svn.apache.org/r1539664
Log:
Bug 55756 - HTTP Mirror Server : Add ability to set Headers
Bugzilla Id: 55756

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
    jmeter/trunk/xdocs/changes.xml

Date: Thu Nov  7 14:44:39 2013
New Revision: 1539667

URL: http://svn.apache.org/r1539667
Log:
Bug 55756 - HTTP Mirror Server : Add ability to set Headers
Document
Bugzilla Id: 55756

Modified:
    jmeter/trunk/xdocs/usermanual/component_reference.xml
Comment 2 Philippe Mouawad 2013-11-07 20:47:51 UTC
Date: Thu Nov  7 20:36:32 2013
New Revision: 1539805

URL: http://svn.apache.org/r1539805
Log:
Bug 55756 - HTTP Mirror Server : Add ability to set Headers
Fix tests failure
Bugzilla Id: 55756

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
Comment 3 Sebb 2013-11-08 23:38:36 UTC
This is basically a duplicate of Bug 54005.

As discussed there, the facility is not particularly useful as it requires the browser (or other client) to send the X-headers in order to get them returned without the X- prefix.

It would be better to implement the suggestion in Bug 54005 which is to add a table to the mirror server GUI with the headers it should return.

I'm finding it hard to imagine a use-case for the current implementation.
Comment 4 The ASF infrastructure team 2022-09-24 20:37:55 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3268