Howto convert to string and read data from TCP packet

Posted by salime on Stack Overflow See other posts from Stack Overflow or by salime
Published on 2010-04-11T09:30:48Z Indexed on 2010/04/11 9:33 UTC
Read the original article Hit count: 195

Filed under:

I used sharppcap to capture TCP packets. Now i wanna reconstruct HTTP packet from TCP packets but i don't know how. I read somewhere i can find start of HTTP packet in TCP data... i tried to convert byte[] TCP data to string using this code: string s = System.Text.Encoding.UTF8.GetString(tcp_pack.Data); but the string isn't readable. like a binary file that is opened with notepad. is it because the data is encrypted or code is incorrect? how can i reconstruct HTTP packet from TCP packets?

© Stack Overflow or respective owner

Related posts about sharppcap