asp判断能否访问外网的一段简单代码
set x = server.createobject("msxml2.xmlhttp")
x.open "get","
x.send
if isnull(x.responsetext) then
response.write "no picture!"
else
if (not isempty(x.responsetext)) and lcase(left(x.responsetext,3))="gif" then
response.write "yes,picture!"
else
response.write "no picture!"
end if
end if