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

I use browser automation to test websites, but I need to check HTTP requests from the browser (i.e. images, external scripts, XmlHttpRequest objects). Is there a way to programmatically create a proxy server for the browser to use to send it?

I already use Fiddler to view traffic, but I need something that is UI-less, which I can use with continuous build integration.

+3
source share
1 answer

I briefly looked at the same thing and looked at two solutions (but have not tried them yet).

HttpListener (, , Webclient System.Net http ) WebBrowser. HttpListener, - .

, , - , Fiddler: WinINET Http , ( - , JUST WebBrowser). , Fiddler, - Reflector. , - Fiddler , .

!,

+3

Source: https://habr.com/ru/post/1697550/


All Articles