3

I have a JMeter HTTP Request that returns a 302 response with some parameter fields in the redirect URL that I need to extract (ex. state, scope). When I turn off Follow Redirects I correctly get the values extracted, but I don't get a cookie that I need for the next request.

Reversely, when I enable Follow Redirects for the HTTP Request, I automatically get the cookie for the next request but I don't get parameter fields that I'm extracting from the response. How do I get both?

2 Answers 2

1

Add a Regular Expression Extractor and select "Main sample and sub-sample". Now you will be able to extract data from next request that you are talking about.

0

Use Follow redirect to generate the cookies.And if you are unable to generate the subsequent request in follow redirect. Create separate http request manually with the url and details you gathered from redirect automatically option

1
  • 1
    Can you add some punctuation or formatting to this? It's pretty difficult to make sense of without any commas, full stops, or formatting.
    – dvniel
    Jan 10, 2019 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.