how to send postData ?

Hi, i use manually tool xhrPoster for send data, how to send postData using gatling?

Sorry for my english

Hi Miuler,

To execute an HTTP POST method with a body, you have to do this :


http("String body").post("my.post.uri")
  .body("Your Body")

or


http("String body").post("my.post.uri")
  .fileBody("Your File")

You have more details here : https://github.com/excilys/gatling/wiki/Gatling-HTTP

Cheers,

Nicolas

2012/2/15 Miuler <miuler@gmail.com>

Thank you very much :slight_smile: