How to delete variables defined in the Header Manager in a given HTTP request (JMETER)

0

Could someone help?

I would like to delete a certain (variable) parameter entered in Managed HTTP Headers in just one HTTP Request.

Thank you in advance!

    
asked by anonymous 12.10.2018 / 15:42

1 answer

0
  • Add JSR223 PreProcessor as a child of your HTTP request
  • Place the following code in the "Script" area

    sampler.getHeaderManager().removeHeaderNamed('foo')
    
  • Replace foo with the name of the header you want to remove.

    Moreinformationon:

    12.10.2018 / 17:00