W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > September to December 1997

Inconsistent wording of Content-Length

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Wed, 19 Nov 1997 10:49:24 -0500
Message-Id: <3.0.3.32.19971119104924.00c09be0@localhost>
To: jg@w3.org
Cc: http-wg%cuckoo.hpl.hp.com@hplb.hpl.hp.com

Jim,

The descriptions of Content-Length in rev-00 are slightly out of sync. I
propose two small changes to 4.4 and 14.14:

Section 4.4

	- If a Content-Length header field (section 14.14) is present,
	  its value in bytes represents the length of the message-body.

should say

	- If a Content-Length header field (section 14.14) is present,
	  its decimal value in OCTETs represents the length of the
	  message-body.

Later in 4.4

	When a Content-Length is given in a message where a message-body
	is allowed, its field value MUST exactly match the number of
	OCTETs in the message-body. HTTP/1.1 user agents MUST notify
	the user when an invalid length is received and detected.

10.2.7

	- Either a Content-Range header field (section 14.17)
	indicating the range included with this response, or a
multipart/byteranges Content-Type including Content-Range
	fields for each part. If multipart/byteranges is not used,
	the Content-Length header field in the response MUST match
	the actual number of OCTETs transmitted in the message-body.

14.14

	The Content-Length entity-header field indicates the size of
	the message-body, in decimal number of octets, sent to the
	recipient or, in the case of the HEAD method, the size of
	the entity-body that would have been sent had the request
	been a GET.

should say

	The Content-Length entity-header field indicates the size of
	the message-body, in decimal number of OCTETs, sent to the
	recipient or, in the case of the HEAD method, the size of
	the entity-body that would have been sent had the request
	been a GET.

Henrik
--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk
Received on Wednesday, 19 November 1997 09:26:40 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 06:33:03 EDT