Angelo,

It works for me:
# wget -N http://www.nic.it/index.html
--13:04:39--  http://www.nic.it/index.html
           => `index.html'
Resolving www.nic.it... done.
Connecting to www.nic.it[193.205.245.10]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,474 [text/html]

100%[========================================================>] 2,474
142.12K/s    ETA 00:00

13:04:44 (142.12 KB/s) - `index.html' saved [2474/2474]

[EMAIL PROTECTED]:/tmp# wget -N http://www.nic.it/index.html
--13:04:49--  http://www.nic.it/index.html
           => `index.html'
Resolving www.nic.it... done.
Connecting to www.nic.it[193.205.245.10]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,474 [text/html]
Server file no newer than local file `index.html' -- not retrieving.

[EMAIL PROTECTED]:/tmp# wget -V
GNU Wget 1.8.2


Are you perhaps behind a firewall?  At my work location, I frequently run
into cases where the firewall does not correctly pass date and timestamp
information back to wget.


Mark Post

-----Original Message-----
From: Angelo Archie Amoruso [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 6:36 AM
To: [EMAIL PROTECTED]
Subject: Wget 1.8.2 timestamping bug


Hi All,
I'm using Wget 1.8.2 on a Redhat 9.0 box equipped with 
Athlon 550 MHz cpu, 128 MB Ram.

I've encountered a strange issue, which seem really a bug, using the 
timestamping option.

I'm trying to retrieve the http://www.nic.it/index.html page.
The HEAD HTTP method returns that page is 2474 bytes long
and Last Modified on Wed, 30 Oct 2002.

Using wget I retrieve it (using -N) on /tmp and I get :

(ls -l --time-style=long)

-rw-r--r--    1 root     root         2474 2002-10-30 15:53 index.html


Then running again wget with -N I get 
"The sizes do not match (local 91941) -- retrieving"

And on /tmp I get again:
-rw-r--r--    1 root     root         2474 2002-10-30 15:53 index.html

What's happening? Does Wget check creation time file time, which
is obviously :

 -rw-r--r--    1 root     root         2474 2003-08-05 12:28 index.html

????

Thanks for your time and cooperation.
Please reply by email.

Below you'll find actual output

========= HEAD ==========
Trying 193.205.245.10...
Connected to www.nic.it.
Escape character is '^]'.
GET /index.html HTTP/1.0

HTTP/1.1 200 OK
Date: Tue, 05 Aug 2003 10:11:26 GMT
Server: Apache/2.0.45 (Unix) mod_ssl/2.0.45 OpenSSL/0.9.7a
Last-Modified: Wed, 30 Oct 2002 14:53:58 GMT
ETag: "2bc04-9aa-225d2d80"
Accept-Ranges: bytes
Content-Length: 2474
Connection: close
Content-Type: text/html; charset=ISO-8859-1

I run wget with the following parameters:
  wget -N -O /tmp/index.html


========== GET OUTPUT ========
[EMAIL PROTECTED] celldataweb]# wget -N -O /tmp/index.html 
http://www.nic.it/index.html

--12:18:31--  http://www.nic.it/index.html
           => `/tmp/index.html'
Resolving www.nic.it... done.
Connecting to www.nic.it[193.205.245.10]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,474 [text/html]
The sizes do not match (local 91941) -- retrieving.
--12:18:31--  http://www.nic.it/index.html
           => `/tmp/index.html'
Connecting to www.nic.it[193.205.245.10]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,474 [text/html]

100%[====================================>] 2,474         38.35K/s    ETA 
00:00

12:18:32-rw-r--r--    1 root     root         2474 Oct 30  2002 index.html 
(38.35 KB/s) - 

On /tmp:

-rw-r--r--    1 root     root         2474 Oct 30  2002 index.html


When I try again:

[EMAIL PROTECTED] celldataweb]# wget -N -O /tmp/index.html 
http://www.nic.it/index.html


=========== SECOND GET OUTPUT ===========
--12:18:31--  http://www.nic.it/index.html
           => `/tmp/index.html'
Resolving www.nic.it... done.
Connecting to www.nic.it[193.205.245.10]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,474 [text/html]
The sizes do not match (local 91941) -- retrieving.
--12:18:31--  http://www.nic.it/index.html
           => `/tmp/index.html'
Connecting to www.nic.it[193.205.245.10]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,474 [text/html]

100%[====================================>] 2,474         38.35K/s    ETA 
00:00

12:18:32 (38.35 KB/s) - `/tmp/index.html' saved [2474/2474]

But on /tmp:

-rw-r--r--    1 root     root         2474 Oct 30  2002 index.html

What is happening?

-- 
To The Kernel And Beyond!

Reply via email to