I have generated a jmeter script. But I'm not getting anything in response data (View tree listner). I'm getting Response code: 302 and Response message: Moved Temporarily in response header (View tree listner) also giving the URL to which it is redirected in Location field in response header. I want this redirected URL to be displayed in response tab.
0
votes
1 Answers
2
votes
You can fetch the URL using Regular Expression Extractor.
- Add Regular Expression Extractor as a child of the HTTP Request sampler
Configure it as follows:
You will be able to access the extracted URL as
${location}
or `${__V(location)}} where required.
See Using RegEx (Regular Expression Extractor) With JMeter article for more information on correlating dynamic values in JMeter test.