Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: web page update notifier

by danielcid (Scribe)
on Jul 09, 2004 at 15:31 UTC ( #373168=note: print w/replies, xml ) Need Help??


in reply to web page update notifier


You could use a md5 hash to check if the file has
modified or not. It is much more accurate and safe than
only using a diff. In addition, using the MD5 hash will
make the storage for the file much smaller..

*someone said to use "HEAD", to check the last modified
date. This value is not safe/trustworthy.

[]'s

-DBC

Replies are listed 'Best First'.
Re^2: web page update notifier
by Juerd (Abbot) on Jul 12, 2004 at 10:54 UTC

    It is much more accurate and safe than only using a diff.

    Accuracy is irrelevant for text documents. Either a line is the same, or it is not. Besides that, I'm especially interested in *which* lines are different, and how they changed. diff tells me exactly that.

    the last modified date. This value is not safe/trustworthy.

    It has proven to be worthy of my trust.

    Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2019-08-21 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?