我试图用json作为身体数据在jmeter中做一个POST,但我只得到400回.我发送的网址也只接受json.我在Postman中使用了相同的卷曲,它工作得很好.我已经尝试将json作为一个没有名称的值放在参数中,并且没有用.
![1]:http://i.stack.imgur.com/1sAdO.png
我只是想发送{"uid":"jmtest","name":"newdevice"}.
抱歉,我无法发布更多链接
采样器的结果是
Thread Name: QA test 1-1
Sample Start: 2016-05-11 11:50:19 MDT
Load time: 86
Connect Time: 51
Latency: 86
Size in bytes: 282
Headers size in bytes: 244
Body size in bytes: 38
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: 400
Response message: Bad Request
Response headers:
HTTP/1.1 400 Bad Request
Server: nginx
Date: Wed, 11 May 2016 17:50:19 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 38
Connection: keep-alive
X-Request-Id: …