[PATCH] httpd: request file range support
Denys Vlasenko
vda.linux at googlemail.com
Fri Oct 12 04:12:51 PDT 2007
On Friday 12 October 2007 09:41, Chris Paulson-Ellis wrote:
> This patch adds a new FEATURE_HTTPD_RANGE supporting partial file downloads, requested with the HTTP Range header.
>
> I have tested all 4 combinations of FEATURE_HTTPD_RANGE & FEATURE_HTTPD_USE_SENDFILE.
httpd with your patch sends "200 OK":
HTTP/1.0 200 OK
Content-type: video/x-msvideo
Date: Fri, 12 Oct 2007 11:03:46 GMT
Connection: close
Content-Range: bytes 102178816-366964735/366964736
Last-Modified: Sun, 05 Nov 2006 16:57:02 GMT
Content-length: 264785920
wget seems to cope with it, but mplayer insists on seeing
"206 Partial content". When it gets "200", it concludes that
this server cannot provide ranges, and seek doesn't work.
Also, you do not advertise your ability to understand ranges.
"Accept ranges: bytes" is not sent in headers:
HTTP/1.0 200 OK
Content-type: video/x-msvideo
Date: Fri, 12 Oct 2007 11:08:05 GMT
Connection: close
Last-Modified: Sun, 05 Nov 2006 16:57:02 GMT
Content-length: 366964736
svn already contains support for ranges in httpd.
Can you download and test it?
svn co svn://busybox.net/trunk/busybox
--
vda
More information about the busybox
mailing list