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.comReceived on Saturday, 10 December 2005 18:24:35 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 6 June 2008 08:04:29 GMT