大佬请教:HttpPostData()如何发送 addHeader("Content-Type", "application/js
大佬请教:HttpPostData()可以发送JSON内容,但现在碰到个接口,要求发送 addHeader("Content-Type", "application/json"),如何实现?
loXmlHttp = createobject("Microsoft.XMLHTTP")
loXmlHttp.open("POST", 接口url, .F.)
loXmlHttp.setRequestHeader("Content-Type","application/json")
loXmlHttp.setRequestHeader("charset", "utf-8")
loXmlHttp.send(要发送的json)
PAPIresult = loXmlHttp.responseText
RELEASE loXmlHttp
看看能参考不