I'm trying to extract jsessionid
from a sampler's response and reuse it for a third sampler. The sampler in between these two is an independent HTTP request which must not utilize any jsessionid
s.
I'm able to do this manually using a "Regular Expression Extractor" for the first sampler and requesting for jsessionid=${foobar}
in the third sampler:
However, I'd like to accomplish this using the components specifically engineered for this purpose, like "Pre Processor → HTTP URL Re-writing Modifier" and etc.
How can we do URL rewriting for non-subsequent requests?
• Adding "HTTP URL Re-writing Modifier" to the third sampler doesn't work, because it will attempt to parse the response from the second sampler instead of the first one.
• Adding "HTTP URL Re-writing Modifier" to the second sampler doesn't work too, because while it is able to extract the jsessionid
successfully, it uses that jsessionid
for the second sampler instead of the third one.