探究如何使用 ASP 查找 Web 上正确的超连接
发布时间:2023-10-12 13:22:55 所属栏目:Asp教程 来源:
导读:探究如何使用 ASP 查找 Web 上正确的超连接?<%Function urlChk(sUrl)on error resume nextSet xmlHttp = Server.CreateObject("Microsoft.XMLHTTP")xmlHttp.open "GET",sUrl,falsexmlHttp.send if xmlHttp.Statu
探究如何使用 ASP 查找 Web 上正确的超连接? <% Function urlChk(sUrl) on error resume next Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP") xmlHttp.open "GET",sUrl,false xmlHttp.send if xmlHttp.Status <> 200 then urlChk=false else urlChk=true end if End Function sUrl=http://www.code-123.com if urlChk(sUrl) then response.write(sUrl&"(可以正常访问!)") else response.write(sUrl&"(页面打开错误!)") end if %> (编辑:银川站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐