作家
登录

asp下的一个检测链接是否正常的函数

作者: 来源:www.28hudong.com 2013-03-30 08:28:03 阅读 我要评论

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.jb51.net" if urlChk(sUrl) then response.write(sUrl&"(可以正常访问)") else response.write(sUrl&"(访问不了)") end if

  推荐阅读

  asp实现的可以提醒生日的几种方法附代码

asp生日自动提醒小程式 用ASP编写,调试通过,使用方便-asp birthday automatically remind small programs with the preparation of ASP, debug, easy to use方法一: 最初写的一个用于班级网站的最近一个月同学生>>>详细阅读


本文标题:asp下的一个检测链接是否正常的函数

地址:http://www.17bianji.com/kaifa2/ASP/32208.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)