首页 > 解决方案 > 经典asp使用Msxml2.ServerXMLHTTP.6.0与https跨域有错误

问题描述

我将使用 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

标签: asp-classic

解决方案


推荐阅读