Re: draft-luotonen-http-url-byterange-00.txt
Ari Luotonen (luotonen@netscape.com)
Wed, 27 Sep 1995 14:05:34 -0700 (PDT)
> * "separated by a colon" should read "separated by a semicolon"
Yes, will be fixed in the next revision of the draft.
> * The draft is silent on how the server should respond to a
> very large integer parameter, e.g.
>
> http://host/dir/foo;bytes=-123456789012345678901234567890
>
> This might be treated as a syntax error or might be treated as the
> largest integer that the server can represent.
Any large number should be treated as the biggest possible value it
can have. That is, the size of the document, size - 1, or whatever.
In the above case, it would be the size of the doc. Will change to
spec to be more clear about it.
> * The draft says that large second numbers should be treated as referring
> to the end of the document. The draft also says that the first
> number must always be less than or equal to the second number.
> Suppose that dir/foo is a 1-byte file and the request is
>
> http://host/dir/foo;bytes=9-10
>
> Using the first rule the server transforms the request into
>
> http://host/dir/foo;bytes=9-0
>
> Is this now an error according to the second rule? Or should
> the server give some arbitrary response, e.g. return the last
> byte of the file?
Should be treated a zero-length range.
Cheers,
--
Ari Luotonen ari@netscape.com
Netscape Communications Corp. http://home.netscape.com/people/ari/
501 East Middlefield Road
Mountain View, CA 94043, USA Netscape Server Development Team