<%
vc_url = "http://www.repubblica.it/index.php"
Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "GET", vc_url, False
xmlhttp.Send
'quì recupero il contenuto testuale
'pagetxt = CStr(xmlhttp.ResponseText)
'pagetxt = CStr(xmlhttp.ResponseStream)
response.write "<xmp>"&xmlhttp.ResponseText&"</xmp>"
<---MODIFICA
'quì controllo lo stato della pagina
pagestatus = xmlhttp.Status
Set xmlhttp = Nothing
'se lo stato della richiesta è = 200 allora la pagina è disponibile
'response.write "status--->" & pagestatus
If CInt(pagestatus) = 200 Then
FileExist = true
response.write "Il file esiste"
Else
FileExist = false
response.write "Il file non esiste"
end if
%>