On Sat, May 26, 2001 at 01:07:46PM +0200, Hrvoje Niksic wrote:
>
> But Wget *thinks* that the server doesn't support it.  Sending a debug
> log of (the relevant part of) the Wget run would probably help in
> determining what went wrong.
oops, forgot that (actually, I was afraid I had missed some new
feature/changed behavior, so flooding the list with an unwanted debug log
was something I wanted to avoid ;-) )

I believe the error is in that wget determine the server to not support -c
without checking; because on a single file;


$ src/wget -d -c -r -np http://ftp.sunet.se/pub/gnu/wget/wget-1.4.5.tar.gz
/.../
---request begin---
GET /pub/gnu/wget/wget-1.4.5.tar.gz HTTP/1.0
User-Agent: Wget/1.7-pre1
Host: ftp.sunet.se
Accept: */*
Connection: Keep-Alive
Range: bytes=53040-
---request end---
HTTP request sent, awaiting response... HTTP/1.1 206 Partial Content
Date: Sat, 26 May 2001 11:14:09 GMT
Server: Apache/1.3.14 (Unix) PHP/4.0.3pl1
Last-Modified: Fri, 09 May 1997 22:00:00 GMT
ETag: "1c2a-3ed74-33739e60"
Accept-Ranges: bytes
Content-Length: 204356
Content-Range: bytes 53040-257395/257396
Connection: Keep-Alive
Content-Type: application/x-tar
Content-Encoding: x-gzip
Found ftp.sunet.se in host_name_address_map: 194.71.11.20
Registered fd 3 for persistent reuse.
Length: 257,396 (204,356 to go) [application/x-tar]
            [ skipping 50K ]
   50K ,......... .......... .......... ..........
/.../


it works just great as always, but using -c on the directory itself ...


$ src/wget -d -c -r -np http://ftp.sunet.se/pub/gnu/wget/
/.../
---request begin---
GET /pub/gnu/wget/ HTTP/1.0
User-Agent: Wget/1.7-pre1
Host: ftp.sunet.se
Accept: */*
Connection: Keep-Alive
Range: bytes=4817-
---request end---
HTTP request sent, awaiting response... HTTP/1.1 200 OK
Date: Sat, 26 May 2001 11:27:50 GMT
Server: Apache/1.3.14 (Unix) PHP/4.0.3pl1
Connection: close
Content-Type: text/html

The server does not support continued downloads, which conflicts with -c'.
/.../


--
Regards
 Henrik

Reply via email to