'###########
'检测远程文件是否存在
'###########
function CheckURL(byval A_strUrl)
set XMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
XMLHTTP.open "HEAD",A_strUrl,false
XMLHTTP.send()
CheckURL=(XMLHTTP.status=200)
set XMLHTTP = nothing
end function
if CheckURL(DownLoadUrl) then
do
else
do other...
end if
asp检测远程文件是否存在
原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]
相关文章:
- xmlhttprequest:responsexml成员(2007-9-18 3:29:26)
- http状态一览(2007-9-9 2:27:29)
- xmlhttp:abort方法(2007-7-17 10:56:13)
- xmlhttp:responsetext属性(2007-4-8 5:40:28)
- xmlhttp:setrequestheader方法(2007-2-24 8:27:54)
- xmlhttprequest对象:status成员(2007-1-14 2:31:28)
- xmlhttp的请求同步和异步、方法的get和post(2007-1-10 8:13:37)
- xmlhttp的编码转换(2006-11-16 8:17:40)
- xmlhttp:onreadystatechange属性(2006-9-16 8:13:39)
- xmlhttp可能的错误和解决方法(2006-9-3 4:9:39)
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
