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

前端 未结 4 1714
借酒劲吻你
借酒劲吻你 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

    Have you looked at implementing an Http Module or an Http Handler (.ashx)? They will allow you to intercept each and every web request and process them as you need before getting to your page.

提交回复
热议问题