Bug 41928

Summary: Make all request headers sent by HTTP Request sampler appear in sample result
Product: JMeter - Now in Github Reporter: Alf Hogemark <alf>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: 2.2   
Target Milestone: ---   
Hardware: Other   
OS: other   
Attachments: Suggested patch

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.
Comment 3 The ASF infrastructure team 2022-09-24 20:37:39 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1897