Re: Confused about

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 UTC