海外邮件中继,海外退信中继,美国高速VPS,不限流量VPN,邮局维护和管理,邮件网关,EMOS邮件中继,POSTFIX邮件中继,Winwebmail邮件中继,Winmail邮件中继,DBMail邮件中继,JDMail邮件中继,Exchange邮件中继,MDaemon邮件中继 淘宝店:http://shantan.taobao.com 云邮科技官网:www.yunrelay.com
【字体设置:大 中 小】
<%
function testurl(url)
dim httpxml
set httpxml = createobject("msxml2.xmlhttp")
httpxml.open "head",url,false
httpxml.send
if httpxml.status = 200 then
testurl = 1
else
testurl = 0
end if
set httpxml = nothing
end function
这里的200表示是200即访问正常如果是404是的话则说明页面不存在呵
下面是实例
if testurl("http://www.030904.net/001.rar")=0 then
response.redirect "http://www.030904.com"
else
response.redirect "http://www.030904.net"
end if
%>
以上是方法一,我写了一个更简单的供大家参考使用
---------------------------------------------------------
set xmlhttp =server.createobject("microsoft.xmlhttp")
xmlhttp.open("head","http://www.030904.net",false)
xmlhttp.send()
if xmlhttp.status=200 then
'文件存在
end if
发表评论 - 不要忘了输入验证码哦!

用户登陆
站点日历
站点统计
最新评论
日志搜索
ASP判断远程文件是否存在 [ 日期:2009-12-27 19:12:09 ] [ 来自: