Changeset 1911


Ignore:
Timestamp:
22/09/12 07:33:58 (11 years ago)
Author:
fielding@…
Message:

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.

Location:
draft-ietf-httpbis/latest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/p1-messaging.html

    r1910 r1911  
    449449  }
    450450  @bottom-center {
    451        content: "Expires March 25, 2013";
     451       content: "Expires March 26, 2013";
    452452  }
    453453  @bottom-right {
     
    492492      <meta name="dct.creator" content="Reschke, J. F.">
    493493      <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p1-messaging-latest">
    494       <meta name="dct.issued" scheme="ISO8601" content="2012-09-21">
     494      <meta name="dct.issued" scheme="ISO8601" content="2012-09-22">
    495495      <meta name="dct.replaces" content="urn:ietf:rfc:2145">
    496496      <meta name="dct.replaces" content="urn:ietf:rfc:2616">
     
    524524            </tr>
    525525            <tr>
    526                <td class="left">Expires: March 25, 2013</td>
     526               <td class="left">Expires: March 26, 2013</td>
    527527               <td class="right">greenbytes</td>
    528528            </tr>
    529529            <tr>
    530530               <td class="left"></td>
    531                <td class="right">September 21, 2012</td>
     531               <td class="right">September 22, 2012</td>
    532532            </tr>
    533533         </tbody>
     
    556556         in progress”.
    557557      </p>
    558       <p>This Internet-Draft will expire on March 25, 2013.</p>
     558      <p>This Internet-Draft will expire on March 26, 2013.</p>
    559559      <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1>
    560560      <p>Copyright © 2012 IETF Trust and the persons identified as the document authors. All rights reserved.</p>
     
    14031403</pre><p id="rfc.section.3.3.2.p.5">A sender <em class="bcp14">MUST NOT</em> send a Content-Length header field in any message that contains a <a href="#header.transfer-encoding" class="smpl">Transfer-Encoding</a> header field.
    14041404      </p>
    1405       <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
    1406          the same request been a GET.
    1407       </p>
    1408       <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
    1409          a <a href="p2-semantics.html#status.200" class="smpl">200 (OK)</a> response.
     1405      <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>); 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
     1406         in the payload body of a response if the same request had used the GET method.
     1407      </p>
     1408      <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
     1409         in the payload body of a <a href="p2-semantics.html#status.200" class="smpl">200 (OK)</a> response to the same request.
    14101410      </p>
    14111411      <p id="rfc.section.3.3.2.p.8">A server <em class="bcp14">MUST NOT</em> send a Content-Length header field in any response with a status code of <a href="p2-semantics.html#status.1xx" class="smpl">1xx (Informational)</a> or <a href="p2-semantics.html#status.204" class="smpl">204 (No Content)</a>. A server <em class="bcp14">SHOULD NOT</em> send a Content-Length header field in any <a href="p2-semantics.html#status.2xx" class="smpl">2xx (Successful)</a> response to a CONNECT request (<a href="p2-semantics.html#CONNECT" title="CONNECT">Section 4.3.6</a> of <a href="#Part2" id="rfc.xref.Part2.15"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content">[Part2]</cite></a>).
  • draft-ietf-httpbis/latest/p1-messaging.xml

    r1910 r1911  
    15861586<t>
    15871587   A server &MAY; send a Content-Length header field in a response to a HEAD
    1588    request (&HEAD;) in order to indicate the size of the payload body,
    1589    excluding any potential transfer-coding, that would have been sent had the
    1590    same request been a GET.
     1588   request (&HEAD;); a server &MUST-NOT; send Content-Length in such a
     1589   response unless its field-value equals the decimal number of octets that
     1590   would have been sent in the payload body of a response if the same
     1591   request had used the GET method.
    15911592</t>
    15921593<t>
    15931594   A server &MAY; send a Content-Length header field in a
    15941595   <x:ref>304 (Not Modified)</x:ref> response to a conditional GET request
    1595    (&status-304;) in order to indicate the size of the payload body,
    1596    excluding any potential transfer-coding, that would have been sent in a
    1597    <x:ref>200 (OK)</x:ref> response.
     1596   (&status-304;); a server &MUST-NOT; send Content-Length in such a
     1597   response unless its field-value equals the decimal number of octets that
     1598   would have been sent in the payload body of a <x:ref>200 (OK)</x:ref>
     1599   response to the same request.
    15981600</t>
    15991601<t>
Note: See TracChangeset for help on using the changeset viewer.