rust-pcap / pcap

Rust language pcap library
Apache License 2.0
610 stars 138 forks source link

extract http request response from the data array #178

Closed sumit-kumar-iitm closed 3 years ago

sumit-kumar-iitm commented 3 years ago

In struct Packet, we have data as byte array, Is there a way of extracting HTTP request/response from this array? Or how can we convert this into human readable format?

Wojtek242 commented 3 years ago

You will have to manually parse the data (after possibly reassembling it from multiple packets). That sort of functionality is above the level of pcap. You can always just use wireshark/tcpdump for something quick and dirty.