On 27/03/2008, <b class="gmail_sendername">Christian S</b> <<a href="mailto:chsu79@gmail.com">chsu79@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks Matthias. This will do!<br> <br><br> On Thu, Mar 27, 2008 at 7:29 PM, Matthias Lang <<a href="mailto:matthias@corelatus.se">matthias@corelatus.se</a>> wrote:<br> > Christian S writes:<br> >   > Typically, one use the http packet to get the Content-Length and then<br>
 >   > proceed to {packet, raw} and read that number of bytes.<br> >   ><br> >   > But how should one handle a request that comes in with an unknown<br> >   > length such as a chunk encoded entity?<br>
 ><br> <br>>  From memory: you read a {packet, line} to get the chunk size, and<br> >  then you can switch to {packet, raw}.<br> ><br> >  You should read RFC 2068 section 3.6. It's not that bad.<br> </blockquote>
</div><br><br>Apologies for being pedantic, but you should read RFC2616, section 3.6.1<br><br>RFC2068 is obsoleted by RFC2616.<br><br>:)<br>Chandru<br><br>