Question

I am creating a Windows Form C# application. in which I need to trace the Single URL web traffic, like FireBug of Mozilla, Charles, Fiddler etc. But I don't want to use its features, because of software dependency.

I found this (Monitoring outgoing internet traffic) also, but most of solutions are using API. So not suitable for me.

So can any one please let me know, how can I create such application, where I can track single URL web Traffic? in C# only. No API please

Was it helpful?

Solution

By using fiddler core api, you could do this,

Fiddler Core

In Code,

If its a windows application, On

private void Form1_Load(object sender, EventArgs e)
        {
            Fiddler.FiddlerApplication.AfterSessionComplete += Fiddler_AfterSessionComplete;
            Fiddler.FiddlerApplication.Startup(0, Fiddler.FiddlerCoreStartupFlags.Default);

         }

    private void Fiddler_AfterSessionComplete(Fiddler.Session osession)
        {
            listWatch.Invoke(new UpdateUI(() =>
            {

               if(osession.fullUrl == "Your Url")
                {
                 //bind data
                }

           }));


        }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top