程序使用Microsoft.XMLHTTP对象请求https时出错解决

程序中使用Microsoft.XMLHTTP组件请求https时出现如下错误:

出错程序代码示例:

复制代码
strUrl = "https://www.xxx.com/xxx.asp?id=11"
dim objXmlHttp
set objXmlHttp = Server.CreateObject("Microsoft.XMLHTTP") 
objXmlHttp.open "GET",strUrl,False        
objXmlHttp.send()

解决:更换Microsoft.XMLHTTP,使用"WinHttp.WinHttpRequest.5.1",即修改对应程序文件代码:

复制代码
set objXmlHttp = Server.CreateObject("Microsoft.XMLHTTP")

改为:

复制代码
Set objXmlHttp= Server.CreateObject("WinHttp.WinHttpRequest.5.1")
objXmlHttp.option(9) = 2720

保存后即可。

相关推荐
MyFreeIT16 小时前
Let‘s Encrypt SSL 製作免費證書
网络协议·https·ssl
Data_Journal17 小时前
Scrapyd:分步教程
开发语言·python·microsoft·golang·编辑器·html·iphone
00后程序员张19 小时前
Android证书绑定抓包失败?Android SSL Pinning绕过实战指南
android·网络协议·计算机网络·网络安全·adb·https·ssl
霸道流氓气质20 小时前
Spring AI Function Calling实现原理与自定义函数
java·spring·microsoft
唐古乌梁海21 小时前
传输协议https-TCP
网络协议·tcp/ip·https
小弥儿1 天前
GitHub今日热榜 | 2026-09-01:迷你小模型登场
学习·microsoft·开源·github
海盗12341 天前
微软技术日报-2026-08-31
microsoft
小鹿软件办公1 天前
微软官方提示:Windows 安全中心出现 Defender 已关闭为虚假告警
安全·microsoft
阿崽meitoufa1 天前
Prompt Engineering for Agent:让 Agent 稳定运行的提示词写法
网络·人工智能·microsoft
海盗12341 天前
微软技术日报-2026-09-01
microsoft