dotpcap / sharppcap

Official repository - Fully managed, cross platform (Windows, Mac, Linux) .NET library for capturing packets
1.28k stars 267 forks source link

How to capture and parse HTTP protocol packets #432

Closed Shadow-XT closed 1 year ago

Shadow-XT commented 1 year ago

Because of the needs of the program, I want to know how to capture the HTTP protocol packets through SharpPcap. Because in SharpPcap, I only found the transport layer protocols such as TCP and UDP, but the upper application layer protocols were not found. If the application layer protocol interface is not provided, what programming methods can capture and parse the application layer protocols?

kayoub5 commented 1 year ago

See https://github.com/dotpcap/packetnet-connections/blob/master/Examples/HttpMonitorExample/Main.cs