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. enter image description here

enter image description here

enter image description here

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

  1. Add a HTTP Header Manager under your http Request.
  2. Add new parameter to HTTP Header Manager with name Content-Type and value application/x-www-form-urlencoded.
  3. Uncheck "Use multipart/form-data for HTTP POST" of HTTP request.
  4. Uncheck "Encode?" of each request parameter(not necessary).
  5. 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.