Unsupported Media Type,status 415
今天使用post测试接口,请求方式为post,参数是Json格式字符串,如图所示:
测试时,返回状态为415,Unsupported Media Type
检查后发现请求header中没有设置Content-Type,设置content-Type值为application/json。问题解决。
今天使用post测试接口,请求方式为post,参数是Json格式字符串,如图所示:
测试时,返回状态为415,Unsupported Media Type
检查后发现请求header中没有设置Content-Type,设置content-Type值为application/json。问题解决。