Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Test for server availability

Status
Not open for further replies.

pwills

Technical User
Sep 14, 2002
54
GB
Is this possible?
I'd like the page myserver/redirect.asp to test whether server1 is responding. If it is, then it redirects the user to server1, otherwise server2.
In English, redirect.asp would be something like:

if (server1/up.txt <> 'yes')
if (server2/up.txt <> 'yes')
write('sorry, both servers are down')
else
redirect_to (server2)
endif
else
redirect_to (server1)
endif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top