This is a migrated thread and some comments may be shown as answers.

C# and Fiddler

3 Answers 1274 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
rodrigo
Top achievements
Rank 1
rodrigo asked on 20 Nov 2020, 03:09 AM

Hello, I have a problem with this code. I wanted to modify something on a page using this code but it doesn't work for me. It gives me errors, any solution?, thanks for watching and sorry for my bad english.

01.FiddlerApplication.Startup(8888, true, true);
02.                FiddlerApplication.BeforeRequest += (SessionStateHandler)(session =>
03.                //connect mgame2
04.                {
05.                    if (session.uriContains("mGame2.swf")) 
06.                    {
07.                        session.fullUrl = "http://clientebb-v1.esy.es/BBKids/mGame2.swf"; //example url
08. 
09.                    }
10.                    else
11.                    {
12.                        //connect bbkids
13.                        if (!session.uriContains("BBKids.swf"))
14.                            return;
15.                        session.fullUrl = "http://clientebb-v1.esy.es/BBKids/Cheat4.swf";  //example url
16.                        Console.Title = "Script - Status [Connected] <-> [BoomBang.NL]";
17.                        Console.ForegroundColor = ConsoleColor.Green;
18.                        Console.WriteLine("Conectado");
19. 
20. 
21.                    }
22. 
23.                });

3 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 20 Nov 2020, 11:26 AM

Hi Rodrigo,

 

Consider providing more information about your issue, e.g., what are the errors you are receiving. Apart from that, you might also use the Startup method overload that accepts flags as settings. Refer to the following link s for more information:

https://www.csharpcodi.com/csharp-examples/Fiddler.FiddlerApplication.Startup(int,%20Fiddler.FiddlerCoreStartupFlags)/

https://www.fiddlerbook.com/om/html/72610A9D.htm


 

Regards,
Nick Iliev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
rodrigo
Top achievements
Rank 1
answered on 20 Nov 2020, 09:58 PM

Thanks for the answer, here is the complete code for what it's worth, and the error that the code gives me, greetings. 

https://pastebin.com/CAs9eXmQ

0
Nick Iliev
Telerik team
answered on 23 Nov 2020, 08:46 AM

Hi Rodrigo,

The error might indicate that you are missing a Nuget package. Refer to this SO thread for a possible solution.

 

Regards,
Nick Iliev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Fiddler Classic
Asked by
rodrigo
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
rodrigo
Top achievements
Rank 1
Share this question
or