11.07.2015 Views

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Note: while the definition of Content-MD5 is exactly the same <strong>for</strong>HTTP as in RFC 1864 <strong>for</strong> MIME entity-bodies, there are several waysin which the application of Content-MD5 to HTTP entity-bodiesdiffers from its application to MIME entity-bodies. One is thatHTTP, unlike MIME, does not use Content-Transfer-Encoding, anddoes use Transfer-Encoding and Content-Encoding. Another is thatHTTP more frequently uses binary content types than MIME, so it isworth noting that, in such cases, the byte order used to computethe digest is the transmission byte order defined <strong>for</strong> the type.Lastly, HTTP allows transmission of text types with any of severalline break conventions and not just the canonical <strong>for</strong>m using CRLF.14.16 Content-RangeThe Content-Range entity-header is sent with a partial entity-body tospecify where in the full entity-body the partial body should beapplied. Range units are defined in section 3.12.Content-Range = "Content-Range" ":" content-range-speccontent-range-spec = byte-content-range-specbyte-content-range-spec = bytes-unit SPbyte-range-resp-spec "/"( instance-length | "*" )byte-range-resp-spec = (first-byte-pos "-" last-byte-pos)| "*"instance-length = 1*DIGITThe header SHOULD indicate the total length of the full entity-body,unless this length is unknown or difficult to determine. The asterisk"*" character means that the instance-length is unknown at the timewhen the response was generated.Unlike byte-ranges-specifier values (see section 14.35.1), a byterange-resp-specMUST only specify one range, and MUST containabsolute byte positions <strong>for</strong> both the first and last byte of therange.A byte-content-range-spec with a byte-range-resp-spec whose lastbyte-posvalue is less than its first-byte-pos value, or whoseinstance-length value is less than or equal to its last-byte-posvalue, is invalid. The recipient of an invalid byte-content-rangespecMUST ignore it and any content transferred along with it.A server sending a response with status code 416 (<strong>Request</strong>ed range notsatisfiable) SHOULD include a Content-Range field with a byte-rangeresp-specof "*". The instance-length specifies the current length of

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!