check api with follow redirec

Hi,

I’ve set follow redirect to true and I’m using a check function on a request which will have redirect requests.

My question is : which response will check method be applied to?

My check method fails which leads me to believe that it applies to the immediate response and not to the last response received when there are no more redirects.

If so, is there any other way for applying check method on last response received? I’m printing response and I can see the text/regex I’m trying to check…so suggest some way that it does not fail…

Hi,

I've set follow redirect to true and I'm using a check function on a
request which will have redirect requests.

My question is : which response will check method be applied to?

The landing one.

My check method fails which leads me to believe that it applies to the
immediate response and not to the last response received when there are no
more redirects.

Nope

May be, I’m messing up with reg-ex then. Thanks…

Most probably. You should lower the log level in logback.conf so that you can check what you’re sending and receiving.

Good luck!

yup, that really helps. Resolved this. As expected, my regex was wrong. Thanks