【发布时间】:2020-05-12 08:18:56
【问题描述】:
当我在 JMeter 中将以下数据作为 POST 请求提交时,它会将问题显示为
{"id":null,"errMessage":"Content type 'application/json' not supported"}.
我在 JMeter 中使用 JSON 数据和文件上传的参数进行文件上传。还使用 HTTP 标头管理器获取内容类型信息,但它不起作用。谁能帮我尽快解决问题。
以下是数据:
------WebKitFormBoundary1dSLJ0VIb34rDoYr
Content-Disposition: form-data; name="file"; filename="Test.docx"
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
------WebKitFormBoundary1dSLJ0VIb34rDoYr
Content-Disposition: form-data; name="jsonData"; filename="blob"
Content-Type: application/json
{"Comments":"AB","DocSrc":"Upload","Id":4997821,"Referrence":"rev","owner":"abcd","maxVersion":0,"Status":"New","Name":"Test.docx","UploadComment":"Desktop upload","TypeId":"5","Size":234,"fileUploadName":"Test.docx"}
------WebKitFormBoundary1dSLJ0VIb34rDoYr--
【问题讨论】:
标签: html angular jmeter http-post performance-testing