D
DaveF
I am using the following code to see if the image is there, is there a way
to check the image date as well?
Dim sTxt As String
If strURL <> "" Then
If Left(LCase(strURL), 7) <> "http://" Then
strURL = "http://" & strURL
End If
On Error Resume Next
Dim objHTTP
Dim sHTML
objHTTP = CreateObject("Microsoft.XMLHTTP")
objHTTP.open("GET", strURL, False)
objHTTP.send()
sHTML = objHTTP.statusText
If sHTML <> "OK" Then
sTxt = "fail"
Else
sTxt = "ok"
End If
objHTTP = Nothing
Else
sTxt = "fail"
End If
Dim httpRequest As HttpRequest = HttpContext.Current.Request
Dim strFrom = httpRequest.ServerVariables
Dim p As Integer
p = InStr(1, strFrom, "?")
If p > 0 Then
strFrom = Left(strFrom, p - 1)
End If
If sTxt = "fail" Then
errLog = errLog + "ID=" & ID & "********URL=" & strURL & Chr(13)
& Chr(10)
setActive1(ID, "N")
Else
setActive(ID, "Y")
End If
--
David Fetrow
Helixpoint LLC.
http://www.helixpoint.com
(e-mail address removed)
to check the image date as well?
Dim sTxt As String
If strURL <> "" Then
If Left(LCase(strURL), 7) <> "http://" Then
strURL = "http://" & strURL
End If
On Error Resume Next
Dim objHTTP
Dim sHTML
objHTTP = CreateObject("Microsoft.XMLHTTP")
objHTTP.open("GET", strURL, False)
objHTTP.send()
sHTML = objHTTP.statusText
If sHTML <> "OK" Then
sTxt = "fail"
Else
sTxt = "ok"
End If
objHTTP = Nothing
Else
sTxt = "fail"
End If
Dim httpRequest As HttpRequest = HttpContext.Current.Request
Dim strFrom = httpRequest.ServerVariables
Dim p As Integer
p = InStr(1, strFrom, "?")
If p > 0 Then
strFrom = Left(strFrom, p - 1)
End If
If sTxt = "fail" Then
errLog = errLog + "ID=" & ID & "********URL=" & strURL & Chr(13)
& Chr(10)
setActive1(ID, "N")
Else
setActive(ID, "Y")
End If
--
David Fetrow
Helixpoint LLC.
http://www.helixpoint.com
(e-mail address removed)