You mean this ?

--------------------------------------->8-----------------------------------
DEBUG output created by Wget 1.7-dev on Windows.

parseurl ("http://turtle.power.org/";) -> host turtle.power.org -> opath  -> dir  -> 
file  -> ndir
newpath: /
Checking for turtle.power.org in host_name_address_map.
Checking for turtle.power.org in host_slave_master_map.
First time I hear about turtle.power.org by that name; looking it up.
Caching turtle.power.org <-> 10.1.1.9
Checking again for turtle.power.org in host_slave_master_map.
--10:35:49--  http://turtle.power.org/
           => `turtle.power.org/index.html'
Connecting to turtle.power.org:80... Found turtle.power.org in host_name_address_map: 
10.1.1.9
Created fd 88.
connected!
---request begin---
GET / HTTP/1.0

User-Agent: Wget/1.7-dev

Host: turtle.power.org

Accept: */*

Connection: Keep-Alive



HTTP request sent, awaiting response... HTTP/1.1 200 OK
Date: Fri, 04 May 2001 09:35:48 GMT
Server: Apache/1.3.14 (Unix) PHP/4.0.4pl1
X-Powered-By: PHP/4.0.4pl1
Connection: close
Content-Type: text/html



    The server does not support continued download;
    refusing to truncate `turtle.power.org/index.html'.


FINISHED --10:35:49--
Downloaded: 0 bytes in 0 files
--------------------------------------->8-----------------------------------

It's not just on Windows; happens on OS/2 ( compiled with GCC ) too.

Debugging it suggests that hstat.no_truncate desn't get initialized
(dodgy random-looking value contained in no_truncate) :

http_loop calls gethttp() at line 1539, but the following is only
at line 1554:

if( opt.always_rest )
    hstat.no_truncate = file_exists_p(locf);

Moving these two lines *above* the call to gethttp() on line 1554,
the file was downloaded correctly.

--
Csaba R�duly, Software Engineer                     Sophos Anti-Virus
email: [EMAIL PROTECTED]                  http://www.sophos.com
US support: +1 888 SOPHOS 9               UK Support: +44 1235 559933



Reply via email to