使用Msxml2.ServerXMLHTTP.6.0与https跨域的经典ASP有错误

时间:2019-04-16 05:26:13

标签: asp-classic

我将使用https将json数据发送到另一个域,但是我努力了,但仍然无法正常工作,我读了很多资源,但仍然无法解决此问题

我的代码如下,请帮助

Dim oHttp                   
Dim strResult
data="123" 
url="htpps://test.domain/test.asp"
Set oHttp = CreateObject("MSXML2.ServerXMLHTTP.6.0")
oHttp.setOption(2) = 13056
oHttp.open "POST", url, false        '<=line error here code:-2147012890
oHttp.setRequestHeader "Content-Type", "application/json; charset=utf-8"
oHttp.send data

0 个答案:

没有答案