On Wed, Jan 23, 2002 at 03:30:29PM -0500, Beth Kidd wrote:
> is there a way to compare a remote file to a local file? I've built an
> application that downloads files from a remote server, but I've found that
> if the local file is up-to-date, the download will be unnecessary. I'd like
> to be able to compare before downloading the file.

Does not mirror in LWP::Simple do that?

       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.

It does what you describe above.

\rho

Reply via email to