程序使用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

保存后即可。

相关推荐
才聚PMP2 小时前
关于开启NPDP项目2025年第二次续证工作的通知
网络协议·https·ssl
Leinwin3 小时前
微软加速在亚洲扩展云基础设施,推动区域数字化跨越式发展
microsoft
天地之于壹炁兮13 小时前
编程I/O入门指南:核心操作全解析
数据库·windows·microsoft
toooooop814 小时前
Nginx 反向代理 HTTPS CDN 配置检查清单(避坑版)
运维·nginx·https·cdn
Tiandaren14 小时前
大模型应用03 || 函数调用 Function Calling || 概念、思想、流程
人工智能·算法·microsoft·数据分析
尽兴-17 小时前
[特殊字符] 微前端部署实战:Nginx 配置 HTTPS 与 CORS 跨域解决方案(示例版)
前端·nginx·https·跨域·cors·chrom
2501_916008891 天前
HTTPS 请求抓包,从原理到落地排查的工程化指南(Charles / tcpdump / Wireshark / Sniffmaster)
ios·小程序·https·uni-app·wireshark·iphone·tcpdump
尽兴-1 天前
macOS 系统下 Chrome 浏览器安装 HTTPS 证书完整指南
chrome·macos·https·证书·ssl·pem·crt
HelloRevit1 天前
快速入门 - 开始使用 Azure Digital Twins Explorer 中的示例场景
microsoft·flask·azure
【D'accumulation】1 天前
.NET Framework 4.8 + Microsoft.Data.Sqlite 报 Library e_sqlite3 not found
microsoft·sqlite·.net