2

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?

0

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
    Can you add some punctuation or formatting to this? It's pretty difficult to make sense of without any commas, full stops, or formatting. – trashpanda Jan 10 at 15:49

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.