Generating dynamic request in real time

Hi,

I have simulation that needs to send same request signed with a current timestamp. If the timestamp is outdated then the request gets rejected by the server.

I have such a case actually, because I create request once and then repeat it for a long time. How can I make Gatling to generate such request everytime it is sent with up-to-date timestamp?

val authenticatedRequest = http("authenticatedRequest").
  get(path).
  header("Authorization", Signer.sign(System.currentTime()));

val scn = scenario("Open, open, open")
  .during(30 minutes) {
  forever {
    pace(5 seconds).repeat(10) {
      exec(authenticatedRequest)
    }
  }
}

Regards,
Maciej

Fixed by using functions instead of fixed values, based on http://stackoverflow.com/questions/26863162/gatling-2-dynamic-queryparam-on-each-request.

Thanks,
Maciej