W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 2005

Re: Confused about

From: Alisha Smith <ahmedat@gmail.com>
Date: 10 Dec 2005 19:24:21 +0100
Message-ID: <20051210182421.16047.qmail@watsnel.netnation.nl>
To: ietf-http-wg@w3.org

I\'m confused by Section 4.4. Ignoring length calculation methods 1 and 

4, I derive this code to calculate transfer-length:

switch

case “Transfer-Encoding header is present”:

if( the connection was closed ) then

transfer-length = \'number of OCTETs read from start of

message-body to EOF\'

// but this produces the wrong length (it is too long) if

// the message is a response that is not the last response

// in a sequence of pipelined responses

else

transfer-length = \'length determined by decoding chunking\'

endif

case “Content-Length header is present”:

transfer-length = \'Content-Length\'s decimal value\'

default:

if( the connection was closed ) then

transfer-length = \'number of OCTETs read from start of

message-body to EOF\'

else

error

endif



Thanks

Ahmed

--

tel:+923336122962

http://www.kidschatrooms.info | http://www.chat-avenue.info | http://www.screennamesmsn.com
Received on Saturday, 10 December 2005 18:24:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:49:41 GMT