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

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 an instance of a proxy server or a batch browser for use by the browser to find out what sends it?

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

Is it easy to get HTTP-specific information from WinpCap?

+2
source share
4 answers

winpcap. /, . , ( ), , , , .

+2

, -, .

, . Wireshark , , , WinPcap, Wireshark. WinPcap .Net, . NetNomad CodeProject, .

+2
+1

Have you considered implementing an Http module or an Http handler (.ashx)? They will allow you to intercept every web request and process them as needed before reaching your page.

0
source