On 4/23/07, Tony Lewis <[EMAIL PROTECTED]> wrote:
n g wrote:

>     wget url -O dir/name -N
> would download the same file every run.
>
> while
>     wget url -O name -N
> works as expected.

timestamping compares the timestamp on the local file with the timestamp on
the server. When you use -O the timestamp on the local file is the time the
file was downloaded (not the file from the Last-Modified header).

Tony


when Last-Modified header is present in server response,
wget always touch the downloaded file to that date after downloaded
the whole file.
that time usually not the time when the file is downloaded.

another problem about -N option:
if url has been ended in query-string , like `http://server/path/file?foo=bar',
and `-O file' is specified,   then the `-N' timestamping doesn't work either.

Reply via email to