val httpConf = http
.baseURL(“https://www.google.com”)
.acceptHeader(“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”)
.acceptLanguageHeader(“fr-RF,en;q=0.5”)
.acceptEncodingHeader(“gzip, deflate”)
.disableFollowRedirect
.disableWarmUp
val users = scenario(“Users”)
.exec(http(“Hello”).get("/").check(
status.is(302),
headerRegex(LOCATION, “.*”).findAll.saveAs(“redirectURL”)))
.exec(session => { println(session(“redirectURL”).as[Seq[String]]); session })
setUp(users.inject(atOnce(1))).protocols(httpConf)
Works fine for me, prints ArrayBuffer(https://www.google.fr/?gws_rd=cr, ) as expected.
Maybe a typo somewhere