Bug 55756 - HTTP Mirror Server : Add ability to set Headers
HTTP Mirror Server : Add ability to set Headers
Status: REOPENED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.10
All All
: P2 enhancement (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-11-07 14:41 UTC by Philippe Mouawad
Modified: 2013-11-08 23:38 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.