Being simple

Any fool can write code that computer can understand. Good programmers write codes that humans can understand.

导航

公告

统计

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 on 2005-04-19 15:02 margiex 阅读(426) 评论(0) 编辑 收藏