I cant create these objects in pcap.net
IpV4Datagram ip = packet.Ethernet.IpV4;
TcpDatagram tcp = ip.Tcp;
HttpDatagram http = tcp.Http;
// HttpResponseDatagram resdat=http.; How can i create them?
// HttpResponseLayer resp;
if (tcp.Http.Body != null && http.IsResponse)
body = resp.Body.ToString();
I'm trying to get HTTP Response Body from a tcp packet. If there is another way to do it can someone help?