Mackit New

Mackit — Cache cleaner for macOS developers: scans regenerable caches left by Xcode / Node / Flutter and more, risk-labeled, so you can reclaim disk space.

Learn more
Notice We stopped publishing new developer articles in June 2024. Thank you for visiting. Archived posts
知识

程序使用microsoft.xmlhttp对象请求https时出错解决

    程序使用microsoft.xmlhttp对象请求https时出错解决

程序中使用microsoft.xmlhttp组件请求https时出现如下错误

出错程序代码示例

strurl=https://www.xxx.com/xxx.asp?id=11dimobjxmlhttpsetobjxmlhttp=server.createobject(microsoft.xmlhttp)objxmlhttp.openget,strurl,falseobjxmlhttp.send()

解决更换microsoft.xmlhttp,使用“winhttp.winhttprequest.5.1”,即修改对应程序文件代码

将

setobjxmlhttp=server.createobject(microsoft.xmlhttp)

改为

setobjxmlhttp=server.createobject(winhttp.winhttprequest.5.1)objxmlhttp.option(9)=2720保存后即可。