This is the scenario, go to a.com/home will initial 3 redirects, and finally locate to b.com/randomString. I want to extract the final url “b.com/randomString” and then send a post to it.
check and regex seems not working. I noticed the last redirect has gatling.http.referer in session but I could not get it out. Any ideas? Thanks in advance.
currentLocation works but when i send post to b.com/randomString, all cookies from redirection is gone. I think galting handles cookies all by default. Maybe i need to extract cookie from last redirection and set that in my new post request?