POST parameters to the redirected URL

GATLING version 2.1.7

I’m trying to pass params to the final redirect url in my scenario but that doesn’t seem to be working.

package computerdatabase

import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.core.session.Session
import scala.concurrent.duration._

class VbrStagingSimulation extends Simulation {

val httpConf = http
.baseURL(“base URL”) // Here is the root for all relative URLs
.acceptHeader("/") // Here are the common headers
.doNotTrackHeader(“1”)
.acceptLanguageHeader(“en-US,en;q=0.5”)
.acceptEncodingHeader(“gzip, deflate”)
.userAgentHeader(“Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0”)

val scn = scenario(“login test”)
.exec(http(“get the home page”)
.get("/")
.check(currentLocation.saveAs(“post_url”))
)

.exec(http(“post params to auth page”)
.post("${post_url}")
.formParam(“authUsername”, )
.formParam(“authPassword”, )
.formParam(“login”, “Log In”)
.check(currentLocation.is(“base URL”))
.check(regex(“Sign Out”))
)

setUp(scn.inject(rampUsers(1) over (1 seconds)).protocols(httpConf))
}

The initial GET request has 3 redirects and the final redirect is being captured in the post_url. But when i try to issue a POST the necessary params to the authentication page it’s not working.
Any help would be appreciated.

Thank you.