简体   繁体   English

如何使用application / x-www-form-urlencoded运行jmeter请求; charset = UTF-8“(像邮差的)设置

[英]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; 我试图用application / x-www-form-urlencoded设置一个http头管理器元素; 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. charset = UTF-8“; param。我从postman获得了所需的结果,但是这个设置有一个复选框。我需要将JMeter用于其余的api项目。

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 您需要设置HTTP标头管理器以发送带有application/x-www-form-urlencoded; charset=UTF-8值的Content-Type标头application/x-www-form-urlencoded; charset=UTF-8 application/x-www-form-urlencoded; charset=UTF-8

JMeter HTTP标头管理器


Actually you can just record Postman requests instead of building them manually. 实际上,您只需记录Postman请求,而不是手动构建它们。

  1. Prepare JMeter for recording. 准备JMeter进行录制。 The easiest way is using JMeter Templates Feature , from JMeter's main menu choose File - Templates - Recording - Create 最简单的方法是使用JMeter模板功能 ,从JMeter的主菜单中选择File - Templates - Recording - Create
  2. Kick off JMeter proxy. 启动JMeter代理。 Expand Workbench - HTTP(S) Test Script Recorder and click "Start" 展开Workbench - HTTP(S) Test Script Recorder ,然后单击“开始”
  3. Run Postman using JMeter as a proxy: Postman.exe --proxy-server=localhost:8888 使用JMeter作为代理运行Postman: Postman.exe --proxy-server=localhost:8888
  4. Execute requests in Postman - JMeter will be recording them. 在Postman中执行请求 - JMeter将记录它们。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Spring Boot - 不支持内容类型“application/x-www-form-urlencoded;charset=UTF-8” - Spring Boot - Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported HttpMediaTypeNotSupportedException:不支持内容类型 'application/x-www-form-urlencoded;charset=UTF-8' - HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported restcontroller和application / x-www-form-urlencoded; charset = UTF-8媒体类型的问题 - Issue with restcontroller and application/x-www-form-urlencoded;charset=UTF-8 media type 内容类型 'application/x-www-form-urlencoded;charset=UTF-8' 不支持 - Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported "status":415, "status":"UNSUPPORTED_MEDIA_TYPE","message":"内容类型 'application/x-www-form-urlencoded;charset=UTF-8' 不支持 - "status":415, "status":"UNSUPPORTED_MEDIA_TYPE","message":"Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported 如何获得RESTeasy方法来正确使用UTF-8编码的application / x-www-form-urlencode? - How can I get a RESTeasy method to consume application/x-www-form-urlencoded as UTF-8 correctly? 如何使用关联数组解析 application/x-www-form-urlencoded? - How to parse a application/x-www-form-urlencoded with an associative array? 如何以 application/x-www-form-urlencoded 在 restTemplate 中发送正文 - How to send body in restTemplate as application/x-www-form-urlencoded 在Spring Boot中使用内容类型application / x-www-form-urlencoded的请求的自定义反序列化器 - Custom deserializer for requests with content-type application/x-www-form-urlencoded in Spring Boot 未找到Form&application / x-www-form-urlencoded的Body Writer - Body Writer not found for Form & application/x-www-form-urlencoded
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM