http 415 unsupported media type的解决办法

设置Idhttp.ContentType 的类型。如 接口要求使用Post方式Json格式的串则设置:

 Idhttp.ContentType = 'application/json'.

注:一定是要先设置格式ContentType 再post,也就是说是设置post是以一种什么格式传参数

 

posted on 2020-03-17 14:55  liguang178  阅读(2407)  评论(0)    收藏  举报