Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2016-12-03 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (56 votes). Check out past polls.