W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2012

#271: SHOULD review in p5

From: Mark Nottingham <mnot@mnot.net>
Date: Fri, 22 Jun 2012 11:44:14 +1000
Message-Id: <4E6B4EF3-90C9-4AF1-A9CF-013EB81B5A3D@mnot.net>
To: HTTP Working Group <ietf-http-wg@w3.org>
As per <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/271>, I'm reviewing our use of SHOULD in the documents. Where I find issues, I've flagged with EDITORIAL or DESIGN as seems appropriate (I won't open issues for the design ones until we discuss; the editorial ones are considered attached to #271).


"If a range unit is not understood in a request, a server MUST ignore the whole Range header field (Section 5.4). If a range unit is not understood in a response, an intermediary SHOULD pass the response to the client; a client MUST fail."



"If a 206 is sent in response to a request with an If-Range header field, it SHOULD NOT include other representation header fields."



"A server SHOULD return a response with this status code if a request included a Range header field (Section 5.4), and none of the ranges-specifier values in this field overlap the current extent of the selected resource, and the request did not include an If-Range header field (Section 5.3)."


"When this status code is returned for a byte-range request, the response SHOULD include a Content-Range header field specifying the current length of the representation (see Section 5.2)."



"When a client asks for multiple ranges in one request, the server SHOULD return them in the order that they appeared in the request."



"The header field SHOULD indicate the total length of the full representation, unless this length is unknown or difficult to determine."


"In the case of a byte range request: A server sending a response with status code 416 (Requested range not satisfiable) SHOULD include a Content-Range field with a byte-range-resp-spec of "*"."


"If the server ignores a byte-range-spec (for example if it is syntactically invalid, or if it may be seen as a denial-of-service attack), the server SHOULD treat the request as if the invalid Range header field did not exist."

EDITORIAL - "may" -> "might"


"The If-Range header field SHOULD only be sent by clients together with a Range header field."


"If the validator given in the If-Range header field matches the current validator for the selected representation of the target resource, then the server SHOULD send the specified sub-range of the representation using a 206 (Partial Content) response. If the validator does not match, then the server SHOULD send the entire representation using a 200 (OK) response."



"Otherwise, the byte-range-set is unsatisfiable. If the byte-range-set is unsatisfiable, the server SHOULD return a response with a 416 (Requested range not satisfiable) status code. Otherwise, the server SHOULD return a response with a 206 (Partial Content) status code containing the satisfiable ranges of the representation."


Mark Nottingham   http://www.mnot.net/
Received on Friday, 22 June 2012 01:44:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:00 UTC