문제

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

도움이 되었습니까?

해결책

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
                }

           }));


        }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top