Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<%
Response.Buffer = True
Dim objXMLHTTP, URL
' Create an xmlhttp object:
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
URL = "[URL unfurl="true"]http://www.server1.com/pagename.asp"[/URL]
' Opens the connection to the remote server.
objXMLHTTP.Open "GET", URL, False
' Actually Sends the request and returns the data:
objXMLHTTP.Send
'Check the return status code
If objXMLHTTP.status <> 200 Then 'If page did not come back ok
'Change the URL
URL = "[URL unfurl="true"]http://www.server2.com/pagename.asp"[/URL]
' Opens the connection to the remote server.
objXMLHTTP.Open "GET", URL, False
' Actually Sends the request and returns the data:
objXMLHTTP.Send
If objXMLHTTP.status <> 200 Then
Response.Write "No Server Available."
Else 'Else Server 2 is available
Response.Redirect URL 'redirect
End If
Else 'Else server 1 is available
Response.Redirect URL 'redirect
End If
%>
<%
Response.Buffer = True
Dim objXMLHTTP, URL
' Create an xmlhttp object:
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
URL = "[URL unfurl="true"]http://www.dfrdfdd.com/pagename.asp"[/URL]
' Opens the connection to the remote server.
objXMLHTTP.Open "GET", URL, False
On Error Resume Next
' Actually Sends the request and returns the data:
objXMLHTTP.Send
'Check the return status code
If objXMLHTTP.status <> 200 Then 'If page did not come back ok
'Change the URL
URL = "[URL unfurl="true"]http://www.tek-tips.com"[/URL]
' Opens the connection to the remote server.
objXMLHTTP.Open "GET", URL, False
' Actually Sends the request and returns the data:
objXMLHTTP.Send
If objXMLHTTP.status <> 200 Then
Response.Write "No Server Available."
Else 'Else Server 2 is available
Response.Write "<b>Server 2 is available</b>"
Response.Write objXMLHTTP.ResponseText
End If
Else 'Else server 1 is available
Response.Write "<b>Server 1 is available</b>"
Response.Write objXMLHTTP.ResponseText
End If
%>