Capturing HTTP requests

前端 未结 6 1869
难免孤独
难免孤独 2020-12-14 05:09

Is there a way to monitor and capture all outgoing HTTP requests from a machine using C#?

I need a browser independent way of logging visited URLs.

6条回答
  •  無奈伤痛
    2020-12-14 05:38

    You may want to use existing network interfaces capturing libraries like pcap or winpcap to do so. Rewriting all the necessary stuff by yourself would be quite time expensive.

    Link to Pcap

    Link to WinPcap

    Edit : Just saw someone also wrote the C# bindings to winpcap : SharpPcap

提交回复
热议问题