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

Re: New draft; Content-Length

From: Roy T. Fielding <fielding@avron.ICS.UCI.EDU>
Date: Fri, 23 Dec 1994 22:04:32 -0800
To: Mike Cowlishaw <mfc@vnet.ibm.com>
Cc: http-wg%cuckoo.hpl.hp.com@hplb.hpl.hp.com
Message-Id: <9412232204.aa10041@paris.ics.uci.edu>
> I see a lot of work has gone into the new draft; it's looking good (but
> there do seem to be some surprising additions, such as 'Mandatory'!).

It may get taken out and postponed until 1.1, unless there is a great
cry to leave it in.  It seemed like a good idea at the time ...

> One question which I don't think is covered: if a client sends a
> header with more than one Content-Length line, should the server
> return an error, use the first (or last) Content-Length encountered,
> or just ignore all the Content-Length lines?

Good question -- I'm not sure.  My gut feeling is that if it is received
by the server (in a POST), the server should return a bad request error
unless the lengths are identical.  For clients receiving it from a server,
I would think the client should use the last one encountered.
Does that sound reasonable?

......Roy Fielding   ICS Grad Student, University of California, Irvine  USA
Received on Friday, 23 December 1994 22:11:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:16:10 UTC