LWP::Simple contains a "mirror" function that does something similar. The description says:
mirror($url, $file)
Get and store a document identified by a URL, using If-modified-since, and checking the Content-Length. Returns the HTTP response code.
You could either use that function or use the code as a basis for your own program.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: A check on whether pages on a web site have changed
by davorg
in thread A check on whether pages on a web site have changed
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |