<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Richard,<br>
<br>
There is no substitute for "suck it and see". I have a web server
that I need to ensure keeps running. I monitor it from another
system that runs a CRON job every five minutes that uses "wget" to
download the home page. If this fails it EMails me.<br>
<br>
As you are putting this on the lazarus list. I assume that you want
to do something similar from an interactive Pascal program. Here
there is no substitute for good error handling. My experience is
with the indy components and these will raise an exception if they
can't download a given webpage (timeout). You can catch this and
give the user an appropriate error message when they try to access a
non-responding server. You could even have a background thread to
keep doing this, if it is really important to tell the user as soon
as possible.<br>
<br>
Tony Whyman<br>
MWA<br>
<br>
<div class="moz-cite-prefix">On 30/10/14 09:44, Richard Mace wrote:<br>
</div>
<blockquote
cite="mid:CAK+KT38Y0nri+1WEEgFGfU8aDjj2AsA+tg901Mg4zMeXcpas=Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">Hi All,<br>
What's the most reliable way of detecting whether a remote
website is responding?<br>
<br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">Thanks<br>
<br>
Richard<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
</body>
</html>