asp-classic - 经典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
解决方案
推荐阅读
- javascript - AngularJS Socketio 工厂错误我无法修复
- php - PHP - mail() 函数在我的 localhost(127.0.0.1) 上不起作用
- c# - 何时以及如何使用 DataSource 而不是直接的 SqlConnection
- html - div 中的文本不适合
- javascript - 如何在ionic3中的内容滚动上隐藏页眉和页脚
- node.js - 将身份验证从 passport.js 传递给 puppeteer
- python - 在 RMarkdown html 文档中显示 python 绘图图
- javascript - 从 URL 显示 YouTube 视频
- redis - 如何从 redis 获取所有键/值以便将它们插入 SQL db?
- python - 熊猫数据框中的 if / Else 流控制