79639134

Date: 2025-05-26 14:45:13
Score: 0.5
Natty:
Report link

Use JSR223 PostProcessor to re-add the header after the request, something like this:

  1. In JSR223 PreProcessor:

    vars.putObject('Authorization', sampler.getHeaderManager().getFirstHeaderNamed('Authorization'))
    sampler.getHeaderManager().removeHeaderNamed('Authorization')
    
  2. In JSR223 PostProcessor:

    sampler.getHeaderManager().add(vars.getObject('Authorization'))
    

More information on Groovy scripting in JMeter: Apache Groovy: What Is Groovy Used For?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Ivan G