欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp下的一個檢測鏈接是否正常的函數(shù)

 更新時間:2008年07月15日 19:26:25   作者:  
很簡單的函數(shù),用來檢測網(wǎng)站域名是否能正常訪問。
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.dbjr.com.cn"
if urlChk(sUrl) then
    response.write(sUrl&"(可以正常訪問)")
else
    response.write(sUrl&"(訪問不了)")
end if

相關(guān)文章

最新評論