HTTPS中用XMLHTTP对象访问XML时报错,解决方案如下:
try{ var Req = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0"); var URL = "https://someserver/a.xml"; Req.open("GET", URL, false); Req.setOption(2) = 13056 Req.send(); Response.Write("<BR>Status = " + Req.status); . . . . . . . . } catch(e){ Response.Write( "Exception!!<BR>"); Response.Write(e.number + "<BR>"); Response.Write(e.description + "<BR>"); } 注意必须是4.0的XMLHTTP才有setOption函数;
https://XXX/.xml Error:800C000E
最新推荐文章于 2023-11-15 12:12:51 发布