wx.request是否可以支持content-type: text/xml?

发布于 7 年前作者 xiulancao2910 次浏览最后编辑 7 年前来自 issues

目前使用wx.request post发送xml数据,content-type设置为text/xml,服务器返回415,同样的请求用postman是ok的

2 回复
xhuang
xhuang1 楼6 年前

目前只有两种。你可以把xml转成对象啊

xiangwei
xiangwei2 楼5 年前

自己做个服务端中转下了~

先post到自己的服务器,再post到第三方