Jmeter extract from first sub sample
Laycee last edited by
Is there a way to only parse the first sub sample of a HTTP Request?
I have request that gives two sub samples. The first sub sample is 302 that redirects to the second sub sample. In the first sub sample there is a header named
X-Log-Session-Idthat I try to extract but the header does not exists in the second sub sample. My Regular Expression Extractor overwrites the value from the first sub sample with the default value when the second sample is parsed.
I have extractor set to apply to Sub-samples only and Match No. to 1. The default value is set to Use empty default value.
The problem was that I was using a an empty default and that my regex was wrong.
The regex was supposed to be