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?

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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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