dlnew - Download web resource if local copy is older



NAME

dlnew - Download web resource if local copy is older


SYNOPSIS

dlnew [-C] <url> <file>


DESCRIPTION

Download content from web if newer than local copy (based on Last-Modified and caching headers).


PARAMETERS

-C

Bypass validating cache.

url

URL to be downloaded. Schema can be HTTP or HTTPS.

file

Local file data have to written in. If omitted, last component (basename) of url will be used.


EXIT STATUS

  1. Url ia found and downloaded.

  2. General error, system errors.

  3. Local file's freshness validated by saved cache metadata, not downloaded.

  4. Download not OK. (usually Not Found)

  5. Url found but not modified. (HTTP 304)

  6. Url found but not updated, based on Last-Modified header.

 dlnew - Download web resource if local copy is older