Elliott has asked for the wisdom of the Perl Monks concerning the following question:
I use LWP::Simple to get responses from remote sites. If the site responds, all is well. If there is a DNS problem (e.g. the URL is wrong) all is also well - the get fails in a timely manner. But if the remote site is down and simply not responding, is there any way to tell?
A search on the monastery suggests it cannot be done with LWP - the script simply hangs awaiting a response - even if you adjust the timeout settings. Does anyone know any other way? (Or is the problem with Linux or Apache rather than LWP or Perl?)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I tell if a remote site is up?
by Grygonos (Chaplain) on Nov 11, 2003 at 17:31 UTC | |
by Abigail-II (Bishop) on Nov 11, 2003 at 17:37 UTC | |
by Elliott (Pilgrim) on Nov 11, 2003 at 17:37 UTC | |
by Grygonos (Chaplain) on Nov 11, 2003 at 17:53 UTC | |
Re: How do I tell if a remote site is up?
by sschneid (Deacon) on Nov 11, 2003 at 17:36 UTC | |
by Elliott (Pilgrim) on Nov 11, 2003 at 18:21 UTC | |
by Elliott (Pilgrim) on Nov 11, 2003 at 19:35 UTC | |
Re: How do I tell if a remote site is up?
by barrd (Canon) on Nov 12, 2003 at 14:17 UTC | |
by Elliott (Pilgrim) on Nov 14, 2003 at 17:16 UTC | |
Re: How do I tell if a remote site is up?
by mce (Curate) on Nov 12, 2003 at 15:58 UTC |
Back to
Seekers of Perl Wisdom