Anyone help me think of a way to get wether s server is working or not for multiple servers? I can get
'
'Response.Status = "200 OK'" then
'Response.Write the picture i plan on using
'End If
'
But I can't do that for a remote server. Any ideas?
If you use xmlhttp you can attempt to load a page from a remote server, part of the header that cvomes back is the status, so what you can do is check for the status = 200 like you are above. Do a search in this forum on xmlhttp, you should get quite a few hits, including some examples of exactly what your trying to do.
-Tarwn ________________________________________________________________________________
Want to get great answers to your Tek-Tips questions? Have a look at faq333-2924
did you check the radio button "Keyword Search" ---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee"alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924
I'm going to post my huge code snippet. If I only use the top it works, if i use # 2 or #3 it times out after a few minutes. Help
<%
'Response.Expires = 0
'Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP"
' You can use a IP address here too
'xmlHttp.open "GET", "
Here is an example with 2 servers:
thread333-362942
-Tarwn ________________________________________________________________________________
Want to get great answers to your Tek-Tips questions? Have a look at faq333-2924
Sorry to have to keep this alive but I found out 2 things. First, it doesn't seem to do any name resolving so I have to use ips. second, since the webservers run on ports besides poprt 80 it's useless.
Ok, first, if the names arebn't resolving this is an issue with the way IIS is connecting to your DNS server. The script works fine for me. Second, to use another post can't you just do this as the URL:
Run a command prompt and do an ipconfig/all. make sure it is setting your DNS server correctly. It's od that this would have problems resolving names, but I assume your browser hasn't had this issue.
-Tarwn ________________________________________________________________________________
Want to get great answers to your Tek-Tips questions? Have a look at faq333-2924
Would it matter that the second host is outside my network and that I dont have a DNS server? All my settings are controlled by the SOHO router. Since i cannot just put
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.