How can I know the end of TCP stream and/or SOAP over HTTP flow
843790Mar 31 2009 — edited Mar 31 2009Hi all!
I want to read SOAP messages over HTTP, from sniffed TCP fragments.
How can I decide that the TCP and/or the HTTP fragmenst finished?
For example there is a SOAP message sliced to 5 TCP packets, and the first packet contains the HTTP header and some SOAP content too. The last packet contains the SOAP XML's ending XML-tag </soap:Envelope>.
I don't want to watch every packet's end like "if the end string is </soap:Envelope> then it is the last packet", I just simply want to know which is the last packet of that message.
The TCP connection won't be closed after the message arrives, and let's say the HTTP header doesn't contain a Content-Length field.