https://XXX/.xml Error:800C000E

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函数;
posted @ 2005-04-19 15:02  margiex  阅读(1053)  评论(0编辑  收藏  举报