& strURL
End if
On Error Resume Next
Dim objHTTP
Dim sHTML
Set objHTTP = Server.CreateObject ("Microsoft.XMLHTTP"
objHTTP.open "GET", strURL, False
objHTTP.send
sHTML=objHTTP.statusText
if err or sHTML<>"OK" Then
sTxt="fail"
else
sTxt="ok"
End if
Set objHTTP=nothing
else
sTxt="fail"
End if
strFrom=request.ServerVariables("HTTP_REFERER"
p=instr(1,strFrom,"?"
if p>0 Then
strFrom=left(strFrom,p-1)
End if
response.redirect "checkdone.asp?result=" & sTxt & "&ref=" & strURL & "&return=" & strFrom
%>
'****** checkdone.asp ****
'part 3: post the results back to the re
' ferer
'************************
<%
strRes=request.querystring("result"
strRef=request.querystring("ref"
strRet=request.querystring("return"
%>
<HTML>
<HEAD>
</HEAD>
<SCRIPT>
function postit(){
myform.submit();
}
</SCRIPT>
<BODY onLoad="postit()">
<FORM method="post" action="<%= strRet %>" name="myform">
<INPUT type="hidden" name="result" value="<%= strRes %>">
<INPUT type="hidden" name="url" value="<%= strRef %>">
</FORM>
</BODY>
</HTML> www.vzio.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.