The first GET request is executed, but not the second request POST.

Hello,

I have problem when I send the following two queries:

`

val httpConf = http
.baseURL("*****")
.inferHtmlResources(BlackList("""..css""", “”"..js""", “”"..png""", “”"..ico""", “”"..gif""", “”"..js?."""), WhiteList())
.acceptHeader("""image/png,image/
;q=0.8,/;q=0.5""")
.acceptEncodingHeader(""“gzip, deflate”"")
.acceptLanguageHeader(""“fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3"”")
.connectionHeader(“keep-alive”)
.contentTypeHeader(""“application/x-www-form-urlencoded; charset=UTF-8"”")
.userAgentHeader(""“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0"”")

val feeder = csv(“users.csv”)

object Login {
val action =
exec(http(“Login”)
.get("/login")
.check(regex("""<input type=“hidden” name=“form_build_id” value="([^"]+)" />""").saveAs(“formBuildId”)))
.pause(2)
}

object LoginPost {
val action =
exec(http(“Login Pass”)
.post("/login")
.headers(headers_default)
.formParam(“name”, “${login}”)
.formParam(“pass”, “${password}”)
.formParam(“op”, “Valider”)
.formParam(“form_build_id”, “”"${formBuildId}""")
.formParam(“form_id”, “ede_utilisateur_form”)
.check(status.is(200)))
.pause(2)
}

val scn = scenario(“Limit Test Edelia”).feed(feeder).exec(Login.action, LoginPost.action)

setUp(scn.inject(atOnceUsers(1))).protocols(httpConf)

There was indeed a bug: https://github.com/gatling/gatling/issues/2554

As a workaround, you can disable caching.

Thank you for the response,

Should caching account the HTTP request entirely ( uri + body + methode … ) ?

In theory (as I understand/interpret those clear-as-muddy-water RFCs…), we should account for every request component that would identity the server entity, meaning also the body, but also headers. The most important headers would probably be all the Accept* ones.
Baby steps…