51Testing软件测试论坛
标题:
jmeter post json 报 415错误
[打印本页]
作者:
ganyunxiao
时间:
2014-8-15 15:31
标题:
jmeter post json 报 415错误
我发送了一个 http请求 到服务器
请求:
POST
http://123.125.xxx.xxx:8080/payment/order/getOrderStatus
POST data:
{"data":{"orderid":"6507550753331514"},"sign":"9a99745aa200a1a3121355338dc45b2f"}
[no cookies]
Request Headers:
Connection: keep-alive
Content-Type: application/json
Accept: application/json
Content-Length: 81
Host: 123.125.174.133:8080
User-Agent: Apache-HttpClient/4.2.6 (java 1.5)
始终返回 :
Response code: 415
Response message: Unsupported Media Type
Response headers:
HTTP/1.1 415 Unsupported Media Type
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 1048
Date: Fri, 15 Aug 2014 07:23:59 GMT
HTTPSampleResult fields:
ContentType: text/html;charset=utf-8
DataEncoding: utf-8
怎么才能 返回 Content-Type: application/json 不415错误
API已经在 java HttpClient上测试通过
作者:
lsekfe
时间:
2014-10-23 10:20
从你提供的这些真心没看出有什么问题~
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2