POSTed key->value data cannot be recognized by application server

I am using latest version of Gatling 2. I tried to set the post parameter to to the request body with following code:



And in actual simulation, adding line below:


I see that the data in the request body successfully but server can’t pick it up. What am I doing wrong?

Are you sure your server doesn’t require you to add the application/x-www-form-urlencoded Content-Type header?

Then, not really the easiest way to post params. This would be more simple IMHO:

.postParam(“token”, “${token}”)
.postParam(“quantity”, “1”)
.postParam(“id”, “${id}”)

Are you sure .postParam is supported? I get following compilation error:

value postParam is not a member of io.gatling.http.request.builder.HttpRequestWithParamsBuilder possible cause: maybe a semicolon is missing before `value postParam’?

Usage is:




I am using latest version of Gatling. Am I missing something?

sorry, that’s formParam:

That worked perfectly!! Thanks!