Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: questions concerning using perl to monitor webpages

by Abigail-II (Bishop)
on May 22, 2003 at 00:56 UTC ( #259955=note: print w/ replies, xml ) Need Help??


in reply to questions concerning using perl to monitor webpages

The HTTP protocol helps, as there is a "If-Modified-Since" header. So, you could use LWP, create an user agent, and an HTTP Request object, set the "If-Modified-Since" header, do the request, and look at the return status of the response. If the status is 304, the content hasn't changed. If the status is 200, the content has changed. For any other status, see RFC 2068.

Abigail


Comment on Re: questions concerning using perl to monitor webpages
Re: Re: questions concerning using perl to monitor webpages
by Trimbach (Curate) on May 22, 2003 at 02:00 UTC
    This is great in principle for truly static pages, but for CGI output the "If-modified-since" is, like, now. So it depends on what kind of pages you're going to fetch if this particular trick will work.

    It's dead easy to use, though, when it works. :-)

    Gary Blackburn
    Trained Killer

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2014-09-01 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (7 votes), past polls