bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Download files and preserve their data and time


From: David H. Lipman
Subject: Re: [Bug-wget] Download files and preserve their data and time
Date: Sat, 20 Aug 2011 08:02:05 -0400

From: "Giuseppe Scrivano" <address@hidden>

> "David H. Lipman" <address@hidden> writes:
>
>> I don't know when it happened, probably when I upgraded WGET, but when I 
>> download files
>> thedy inherit the date and time of the file of when they were downloaded.
>>
>> It used to be that when the file was downloaded, it retained the date and 
>> time of the
>> file it had on the server.  Not when it was downloaded.
>>
>> How can I force WGET to return to that condition ?
>
> it has to work in the same way as it used to do.  It seems to work well
> here, using the last revision from the source repository:
>
> $ LANG=C ./wget -q -d http://www.gnu.org/graphics/gnu-head-mini.png 2>&1 | 
> grep 
> ^Last-Modified
> Last-Modified: Sun, 05 Dec 2010 20:58:51 GMT
>
> $ LANG=C stat gnu-head-mini.png  | grep ^Modify
> Modify: 2010-12-05 21:58:51.000000000 +0100
>
> Can you please provide more information?  What version of wget (wget
> --version)?  What operating system?  Do you get a different output using
> that two commands?
>
> This is also useful for debugging, do you see something different?
>
> $ LANG=C strace -e utimensat ./wget -q 
> http://www.gnu.org/graphics/gnu-head-mini.png
> utimensat(4, NULL, {{1313833704, 0}, {1291582731, 0}}, 0) = 0
>
> Thanks,
> Giuseppe
>

WinXP/Vista -- Win32

Y:\>wget --version
GNU Wget 1.12-2504 built on mingw32.

+digest +https +ipv6 +iri -large-file +nls -ntlm +opie +ssl/openssl

Wgetrc:
    C:\wgetrc.txt  (env)
    c:/wget/root/etc/wgetrc (system)
Locale: c:/wget/root/share/locale
Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/c/wget/root/etc/wgetrc"
    -DLOCALEDIR="/c/wget/root/share/locale" -I. -I../lib -I../lib
    -I/c/wget/root/include -I/c/wget/root/include -O2 -Wall
Link: gcc -O2 -Wall -L/c/wget/root/lib /c/wget/root/lib/libiconv.dll.a
    /c/wget/root/lib/libintl.dll.a -L/mingw/lib
    /c/wget/root/lib/libiconv.dll.a -lssl32 -leay32 -lz -lws2_32 -lidn
    ftp-opie.o mswindows.o openssl.o ../lib/libgnu.a

Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <address@hidden>.
Please send bug reports and questions to <address@hidden>.


-- 
Dave
Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk
http://www.pctipp.ch/downloads/dl/35905.asp 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]