0
votes

The location field contains the token value for the next redirecting page. But I am unable to get that token value from the response header to navigate to the next page.

But while we run the browser manually we can see the location filed in the response header.

how can I get an access token without a location parameter else how to get the location parameter in JMeter response header?

1

1 Answers

0
votes

If you're not getting the same response with JMeter comparing to the real browser it means that you're not sending the same request (or requests sequence)

Try playing with Redirect automatically / Follow redirects checkboxes, it might be the case JMeter is not properly redirecting you to the proper location

enter image description here

You need to compare the requests originating from JMeter and real browser using:

Once you configure JMeter to behave exactly like the real browser you should get the same response including the Location header.