pofqggg
pofqggg

Reputation: 141

How to run jmeter requests with application/x-www-form-urlencoded; charset=UTF-8" (like postman's) setting

I am trying to set an http head manager element with application/x-www-form-urlencoded; charset=UTF-8"; param. I get the needed result from postman but there is a checkbox for this setting. I need to use JMeter for the rest api project.

Upvotes: 2

Views: 6268

Answers (1)

Dmitri T
Dmitri T

Reputation: 168092

You need to set up HTTP Header Manager to send Content-Type header with the value of application/x-www-form-urlencoded; charset=UTF-8

JMeter HTTP Header Manager


Actually you can just record Postman requests instead of building them manually.

  1. Prepare JMeter for recording. The easiest way is using JMeter Templates Feature, from JMeter's main menu choose File - Templates - Recording - Create
  2. Kick off JMeter proxy. Expand Workbench - HTTP(S) Test Script Recorder and click "Start"
  3. Run Postman using JMeter as a proxy: Postman.exe --proxy-server=localhost:8888
  4. Execute requests in Postman - JMeter will be recording them.

Upvotes: 4

Related Questions