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. "
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.
Added to SVN. It will be in the nightlies after r521888.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1897