How works "put" method?

Hi,

I want test a rest webservice and i tried to execute the PUT method and when try to execute from gatling doesn’t work.

I used the recorder and after that i tried to execute from gatling.sh and doesn’t works:

This is the code:

.exec(http(“request_1”)
.put("""/fi?name=alin_0001&url=alin_url_0001"""))

I received the following error:

18:09:08.842 [WARN ] i.g.h.a.AsyncHandlerActor - Request ‘request_0’ failed: status.in(200,304,201,202,203,204,205,206,207,208,209), but actually found 411

If i execute the same PUT from another client, works fine.

Thanks!

Hi
I met the same issue. Did you fix the issue? If yes please let me know the solution. Thank you.

There’s nothing special to PUT. I suspect you didn’t set some expected headers.