How send application/x-www-form-urlencoded params to a RestServer with JMeter?
Here's the solution for HTTP POST with x-www-form-urlencoded testing with jmeter. You just folllow like these.
Go to Thread Group -> Add listener -> Views Result in table, View result Tree. To see the process of responding.
For sending form parameters as application/x-www-form-urlencoded, add a header parameter Content-Type with value application/x-www-form-urlencoded.
The following steps is aplicable for Jmeter 2.3.4
- Add a HTTP Header Manager under your http Request.
- Add new parameter to HTTP Header Manager with name Content-Type and value application/x-www-form-urlencoded.
- Uncheck "Use multipart/form-data for HTTP POST" of HTTP request.
- Uncheck "Encode?" of each request parameter(not necessary).
kept "Content Encode:" text box of HTTP request as empty.
This won't work for PUT request. For put request add parameters as path parameter and set Content-Type header then Jmeter will do by itself.