ganyunxiao 发表于 2014-8-15 15:31:16

jmeter post json 报 415错误

我发送了一个 http请求 到服务器

请求:
POST http://123.125.xxx.xxx:8080/payment/order/getOrderStatus

POST data:
{"data":{"orderid":"6507550753331514"},"sign":"9a99745aa200a1a3121355338dc45b2f"}



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:43

从你提供的这些真心没看出有什么问题~
页: [1]
查看完整版本: jmeter post json 报 415错误