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?

kirbycope
4,0801 gold badge14 silver badges30 bronze badges
asked Jun 8, 2017 at 18:48

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.

answered Jun 19, 2018 at 11:20
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

answered Jan 10, 2019 at 15:14
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. Commented Jan 10, 2019 at 15:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.