Sandeep Sharma
Sandeep Sharma

Reputation: 109

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

View Tree Sampler View In Request Body

I have tried extracting using the Extractor but doesn't work This is how looks like in the Extractor

Regular Expression Extractor

I get Not Found in the variable

Upvotes: 0

Views: 1236

Answers (2)

SAIR
SAIR

Reputation: 499

To solve the problem use Regular Expression Extractor and remove GET Protocol. Example is given below:

enter image description here

enter image description here

Upvotes: 1

Ori Marko
Ori Marko

Reputation: 58772

You don't need the GET prefix, get all URL with

(.*)

Or without http://

http://(.*)

Upvotes: 1

Related Questions