'JMeter Http Header manager doesn't add header to request
I have a JMeter plan using an HTTP sampler that I am trying to add a header to the request. The header should be really simple custom: type
But when I run the test I don't see the header....
What am I missing? Why is my header not showing up in the request?
Update
I also tried this but got the same result.
Solution 1:[1]
Your issue is due to wrong scoping of Header Manager.
Either put it as child of Get Session or child of Test plan if it applies to whole Requests of test plan.
Example:
If it fails, it could be due to your User Credentials Pre-Processor (which runs before GetSession request is sent), but as you don't show code.
Another option is that you're seeing redirect request instead of initial one, check your config so that you see the 2 requests:
Solution 2:[2]
I had the same issue (When editing the HTTP Header at the thread level it would use my old values) I didn't realize I had a HTTP Header at a lower level as well. So make sure to remove any other instance of HTTP Header manager. I had one at the Thread Group level and the https request level. I deleted the one at the https level and it fixed my issue.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | aynonomus |