Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Detecting for HTTP pages code changes

by Marshall (Canon)
on Jan 15, 2018 at 09:38 UTC ( [id://1207267]=note: print w/replies, xml ) Need Help??


in reply to Detecting for HTTP pages code changes

So, I am assuming that this a cron job that runs every 15 minutes?
In order to suppress multiple 404 messages, you need to maintain a state of what happened before. The file system is fine for this.

Here is some pseudo code:

if($HTTPCode == SUCCESS) { delete 404Errfile if (-e 404Errfile); } elsif ($HTTPCcode == 404) { print 404_error unless exists 404ErrFile; create 404ErrFile; } else print $HTTPCcode;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1207267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-04-24 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found