Hi,
I’m trying to get a token from our login process but the token is in a redirect. Is there anyway to get the token to use it to send into the next post?
.exec(http(“request_2”)
.post("/authentificationProcess")
.headers(headers_2)
.formParam(“user”, “bob”)
.formParam(“password”, “123”)
.check(regex("""<input Type=“hidden” Name=“id” value="(id:.*==)"""").find.saveAs(“token”)))
.pause(2)
.exec(http(“request_3”)
.post(uri5 + “/LogonSSO”)
.headers(headers_3)
.formParam(“awID”, “${token}”)
.formParam(“msgId”, “open”))
What I want is to be able to obtain the token between authentificationProcess and LogonSSO to use it as a variable in my formparam.
Best regards,
René