程序使用Microsoft.XMLHTTP對(duì)象請(qǐng)求https時(shí)出錯(cuò)解決程序中使用Microsoft.XMLHTTP組件請(qǐng)求https時(shí)出現(xiàn)如下錯(cuò)誤:
出錯(cuò)程序代碼示例: 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”,即修改對(duì)應(yīng)程序文件代碼: 將 set objXmlHttp = Server.CreateObject("Microsoft.XMLHTTP")改為: Set objXmlHttp= Server.CreateObject("WinHttp.WinHttpRequest.5.1")
objXmlHttp.option(9) = 2720保存后即可。
|
|||||
| >> 相關(guān)文章 | |||||
|
|
|||||
400-028-5800
028-62778877
您好,非正常上班時(shí)間若有緊急技術(shù)問題,請(qǐng)撥總機(jī)后按7號(hào)鍵, 其他問題請(qǐng)?zhí)峤还位蛟谏习鄷r(shí)間聯(lián)系,謝謝支持!