jmeter content
时间: 2023-08-14 17:08:00 浏览: 88
jmeter
根据引用\[1\]和引用\[2\]的内容,jmeter中请求提交的内容有三种方式:application/x-www-form-urlencoded、application/json和multipart/form-data。其中,application/x-www-form-urlencoded是默认的方式,参数格式为key1=value1&key2=value2,可以在Parameters或Body Data中输入。application/json需要在header中设置content-type为application/json,并在Body Data中输入json格式的参数。multipart/form-data需要在http请求编辑页面选中Use multipart/form-data for POST。\[1\]\[2\]
根据引用\[3\]的内容,application/json不是默认的文件类型,所以在使用jmeter发送请求时,需要告诉服务器我们发送的请求信息是哪种格式的。可以通过添加信息头管理器,在里面申明类型为application/json来设置。\[3\]
#### 引用[.reference_title]
- *1* *2* [jmeter之content-type设置方式](https://blog.csdn.net/qq_24811193/article/details/124748785)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [jmeter中Content-type讲解](https://blog.csdn.net/happytimewyp/article/details/118468861)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文