How to capture Network traffic using Java and get file type without using Proxy?

252 Views Asked by At

I need to capture network traffic using Java and get the File type. eg: IF it is xmlHTTPrequest the File type is XHR.

1

There are 1 best solutions below

0
On BEST ANSWER

Depends on what you actually want to do. But if you want a whole machine network sniffer (something like what whireshark is doing), libpcap or winpcap is probably what you're searching for. There is also a java library which handles the low level stuff: pcap4j