PDA

View Full Version : Downloading kali: no support for HTTP Ranges



pezza
2013-06-16, 15:28
Hi,

I tried to download the VMWare image, and found out that it's not possible to interrupt and resume downloading.
From the interaction with the server, it looks like nginx is not respecting the Range: request correctly, even if it declares in the initial response that it supports it. In other words, the server replies with 200 (instead of 206) to the partial download request.

Maybe this is intended ?



------------------------------------------------------------
HTTP session log (a partially downloaded file is present in the current folder)


briciola:~ pezza$ curl -C - http://archive-3.kali.org/kali-images/kali-linux-1.0-i386-gnome-vm.tar.gz -v -o kali-linux-1.0-i386-gnome-vm.tar.gz
* About to connect() to archive-3.kali.org port 80 (#0)
* Trying 50.7.240.82... ** Resuming transfer from byte position 148428688
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0connected
* Connected to archive-3.kali.org (50.7.240.82) port 80 (#0)
> GET /kali-images/kali-linux-1.0-i386-gnome-vm.tar.gz HTTP/1.1
> Range: bytes=148428688-
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: archive-3.kali.org
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/0.7.67
< Date: Sun, 16 Jun 2013 15:24:46 GMT
< Content-Type: text/plain
< Content-Length: 3219695618
< Last-Modified: Mon, 11 Mar 2013 21:46:24 GMT
< Connection: keep-alive
< Accept-Ranges: bytes
<
* HTTP server doesn't seem to support byte ranges. Cannot resume.
0 3070M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Closing connection #0