Source: https://trac.ietf.org/trac/httpbis/changeset/1911/draft-ietf-httpbis/latest/p1-messaging.html
Timestamp: 2019-12-13 20:38:24
Document Index: 622247805

Matched Legal Cases: ['art2', 'art2', 'art2', 'art4', 'art4', 'art4', 'art4', 'art4', 'art4']

Changeset 1911 for draft-ietf-httpbis/latest/p1-messaging.html – Hypertext Transfer Protocol Wiki
Changeset 1911 for draft-ietf-httpbis/latest/p1-messaging.html
Sep 22, 2012, 12:33:58 AM (7 years ago)
Further to [1908], require that a Content-Length accurately reflect the
size of "what would have been" the payload body if it is sent in a
HEAD response or 304 response.
<p id="rfc.section.3.3.2.p.6">A server <em class="bcp14">MAY</em> send a Content-Length header field in a response to a HEAD request (<a href="p2-semantics.html#HEAD" title="HEAD">Section 4.3.2</a> of <a href="#Part2" id="rfc.xref.Part2.14"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a>) in order to indicate the size of the payload body, excluding any potential transfer-coding, that would have been sent had
the same request been a GET.
<p id="rfc.section.3.3.2.p.7">A server <em class="bcp14">MAY</em> send a Content-Length header field in a <a href="p4-conditional.html#status.304" class="smpl">304 (Not Modified)</a> response to a conditional GET request (<a href="p4-conditional.html#status.304" title="304 Not Modified">Section 4.1</a> of <a href="#Part4" id="rfc.xref.Part4.3"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a>) in order to indicate the size of the payload body, excluding any potential transfer-coding, that would have been sent in
a <a href="p2-semantics.html#status.200" class="smpl">200 (OK)</a> response.
<p id="rfc.section.3.3.2.p.7">A server <em class="bcp14">MAY</em> send a Content-Length header field in a <a href="p4-conditional.html#status.304" class="smpl">304 (Not Modified)</a> response to a conditional GET request (<a href="p4-conditional.html#status.304" title="304 Not Modified">Section 4.1</a> of <a href="#Part4" id="rfc.xref.Part4.3"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests">[Part4]</cite></a>); a server <em class="bcp14">MUST NOT</em> send Content-Length in such a response unless its field-value equals the decimal number of octets that would have been sent