It might be simpler to save the Auth token in a variable and reference that from the HeaderManager.
Just overwrite it to change it. On 26 January 2016 at 09:40, ZK <[email protected]> wrote: > Hi, > try: > > import org.apache.jmeter.protocol.http.control.Header; > > sampler.getHeaderManager().removeHeaderNamed("Authorization"); > > sampler.getHeaderManager().add(new Header("Authorization","Bearer > b2f963c5d0ec61dad1f3844f4f25c66")); > > > > > ZK > > > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Beanshell-Preprocessor-repeating-header-as-test-runs-tp5723669p5723670.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
