|
我发送了一个 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上测试通过 |
|