Bug 41928 - Make all request headers sent by HTTP Request sampler appear in sample result
Make all request headers sent by HTTP Request sampler appear in sample result
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.2
Other other
: P2 enhancement (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-03-22 05:07 UTC by Alf Hogemark
Modified: 2007-03-23 13:26 UTC (History)
0 users



Attachments
Suggested patch (7.47 KB, patch)
2007-03-22 05:14 UTC, Alf Hogemark
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alf Hogemark 2007-03-22 05:07:02 UTC
Currently, the HTTPSampler and HTTPSampler2 (i.e. HTTP Request
sampler), only sets the request headers that is coming from the
"HeaderManager" as the request header of the sample.

I suggest that all the request headers that are sent to the web
server, i.e. also the ones set by the jmeter code itself, should be
set on the request sample.

I think this makes it easier to see what is sent to the web server.

Sebb commented :
"
There may be other headers (e.g. Host) which are added by the HTTP
stack; I'm not sure if those can be accessed by JMeter. Does not
particularly matter, so long as it is documented.
"
Comment 1 Alf Hogemark 2007-03-22 05:14:16 UTC
Created attachment 19771 [details]
Suggested patch

This patch makes all the request headers that are sent in the request appear as
part of the sample.
Like Sebb says, the "Host" header does not appear at the moment.
Comment 2 Sebb 2007-03-23 13:26:25 UTC
Added to SVN.

It will be in the nightlies after r521888.