W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > September to December 1997

Question on byte ranges

From: John Franks <john@math.nwu.edu>
Date: Fri, 31 Oct 1997 19:09:10 -0600 (CST)
To: http working group <http-wg%cuckoo.hpl.hp.com@hplb.hpl.hp.com>
Message-Id: <Pine.LNX.3.95.971031185621.29110A-100000@hopf.math.nwu.edu>
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/4614
Here is a question arising from the interoperability test.

If a server receives a byte range requests for a 100 byte file like

a)   Range: bytes = 0-10, 130-140
b)   Range: bytes = 30-20
c)   Range: bytes = 0-10, 30-20, 40-50

what is the correct response?  

In case a) one of the two ranges is invalid, but the spec says send
a 416 only if *all* are invalid.  If the valid ones are returned with
a 206 then there is no way to signal an error.  

In case b) the spec says

            If the last-byte-pos value is present, it must be greater
            than or equal to the first-byte-pos in that byte-range-spec,
            or the byte-range-spec is invalid. The recipient of an
            invalid byte-range-spec must ignore it.

If the server ignores it then it should send what?

Case c) is like b) except it is possible to send the valid ranges.

John Franks
Received on Friday, 31 October 1997 17:10:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:16:28 UTC