今天使用post测试接口,请求方式为post,参数是Json格式字符串,如图所示:Unsupported Media Type,status 415

测试时,返回状态为415,Unsupported Media Type

Unsupported Media Type,status 415

检查后发现请求header中没有设置Content-Type,设置content-Type值为application/json。问题解决。

Unsupported Media Type,status 415

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-11-20
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-12-27
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
相关资源
相似解决方案