'JMeter Extract Redirected Request Body URL
GET https://www.example/a/resource1?id=24 - I have this URL
This gets redirected to https://www.example/a/resource1-New-York - I need this URL -- This is how it looks like in the View Tree
I have tried extracting using the Extractor but doesn't work This is how looks like in the Extractor
I get Not Found in the variable
Solution 1:[1]
You don't need the GET prefix, get all URL with
(.*)
Or without http://
http://(.*)
Solution 2:[2]
To solve the problem use Regular Expression Extractor and remove GET Protocol. Example is given below:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | user7294900 |
Solution 2 | SAIR |