手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp下的一个检测链接是否正常的函数
asp下的一个检测链接是否正常的函数
摘要:FunctionurlChk(sUrl)onerrorresumenextSetxmlHttp=Server.CreateObject("M...

FunctionurlChk(sUrl)

onerrorresumenext

SetxmlHttp=Server.CreateObject("Microsoft.XMLHTTP")

xmlHttp.open"GET",sUrl,false

xmlHttp.send

ifxmlHttp.Status<>200then

urlChk=false

else

urlChk=true

endif

EndFunction

sUrl="http://www.jb51.net"

ifurlChk(sUrl)then

response.write(sUrl&"(可以正常访问)")

else

response.write(sUrl&"(访问不了)")

endif

【asp下的一个检测链接是否正常的函数】相关文章:

高手推荐的比较有用的ASP函数集合

asp获取数据库的连接属性的方法

asp+ajax检测用户名是否在存

改进一下asp自带的formatNumber函数

asp 中英文字符长度检测判断函数

asp中的Rnd 函数

asp最常用的分页函数

asp的一个日期格式化函数

asp下多个域名后缀同时查询的域名查询系统

收集asp的常用函数

精品推荐
分类导航