in reply to LWP Script suddenly stopped working...

As ww said, the problem is too generic to offer much help. When you say the script is working perfectly on another server, do you mean it's running on another server and checking this same host successfully, or that it's checking another host successfully? One thing I noticed: should a header called server be set to something like OpenDNS Guide? That seems odd.

For what it's worth, sometimes servers will be (mis)configured to return error codes if they don't receive certain headers or header values. I've seen this more often with Windows servers, for whatever reason. For instance, someone might be trying to serve different content to different browsers, and they didn't set up a default version, so when it sees "libwww-perl/5.836", it just fails. Or it might refuse to send pages to a 'browser' that doesn't send an Accept-Language header. You see odd stuff like that now and then when you're trying to automate stuff like this.

If you don't have control of the server you're trying to monitor, your options are limited. Basically, you can try to emulate a browser as much as possible, and try sending different combinations of headers, until something works.

Aaron B.
Available for small or large Perl jobs; see my home node.