Is there any way in .NET to programmatically listen to HTTP traffic?

前端 未结 4 1717
借酒劲吻你
借酒劲吻你 2020-12-21 11:26

I\'m using browser automation for testing web sites but I need to verify HTTP requests from the browser (i.e., images, external scripts, XmlHttpRequest objects). Is there a

4条回答
  •  执笔经年
    2020-12-21 11:46

    Try winpcap . It's a driver/library combination which can be used to monitor packets. Based on what you are trying to do (watch traffic w/o a UI), this is probably a simpler solution than writing your own proxy.

提交回复
热议问题