title: HTTP packet reconstruction
body: <p>If I have a large HTTP packet which has been split up into a number of TCP packets, how can I reconstruct them back into a single HTTP packet?  Basically, where in the packet do I look to tell when a HTTP packet is starting/ending?  I can't seem to see any flags/fields in the TCP header that denote the start or end of the HTTP packet.  </p>
  
  <p><strong>EDIT:</strong> In follow up to the responses.  If TCP manages the stream, how does it know when the stream starts and ends?  Is that determined by the socket opening and closing?  Some protocol, at some level, must be able to know when the HTTP stream/packet has started and ended.  That is what I would like to know.</p>
  
  <p>The situation I am in is I am using a packet sniffer in C# which reads in TCP packets, and I would like to be able to reconstruct the HTTP requests/responses/etc. going through the interface like how wireshark and various other sniffers manage to.  Alternatively are there any C# libraries that let you tap into the HTTP streams at the higher level, saving me having to reconstruct the HTTP stream/packets myself?</p>
  
  <p>Thanks.</p>