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

Automatic change of response value on site with C#

5 Answers 141 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Dream
Top achievements
Rank 1
Iron
Dream asked on 06 Mar 2021, 07:19 PM

With C# I want to replace text in a site with fiddler. I looked through all the sources but couldn't find anything.

Example: "Not changed try again." At http://metin2bot.net/fiddler/test.php I want to change the text to "Changed successfully".

So when I enter the site, I want it to receive the response I have determined.

Is it possible to do this with C#?

Please help. I love you fiddler. Thx

5 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 07 Mar 2021, 11:33 AM

Hello Dream Fancy,

 

The Fiddler provides an option to programmatically modify requests and responses via FiddlerScript. Refer to this documentation article on how to use FiddlerScript to add rules in session events.

 

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
Dream
Top achievements
Rank 1
Iron
answered on 07 Mar 2021, 07:15 PM

Sir, thank you very much for your explanation.

I reviewed the resource you provided. He's working on the Fiddler program. However, I want to import this into software using the ElmahFiddler library. Is this possible? I am coding a software in C # Visual Studio using the ElmahFiddler library. So is it possible to change the request or response using c # language?

0
Nick Iliev
Telerik team
answered on 08 Mar 2021, 09:20 AM

Hi there,

 

Yes, you could use the FiddlerCore NET library to utilize many of the FIddler functionalities through code (C#).

 

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
Dream
Top achievements
Rank 1
Iron
answered on 10 Mar 2021, 02:36 PM

Thank you so much. I had the opportunity to review the FiddlerCore demo version and I think I will buy it. But I have a question. Tutorial & Docs looks pretty complicated. I could not find the source code for how to change the response value at a sample address.

I just need a small sample. I'll code the rest. Is it possible to see a sample c# code that changes the response value of a url address as I mentioned in the topic? Thanks.

0
Nick Iliev
Telerik team
answered on 11 Mar 2021, 06:06 AM

Hello Dream,

 

The FIddlerCore library basically uses FiddlerScript so you could use the official documentation to get multiple examples and basic samples. For example, refer to this documentation page on how to modify a response while using the onBeforeResponse event.

 

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
Dream
Top achievements
Rank 1
Iron
Answers by
Nick Iliev
Telerik team
Dream
Top achievements
Rank 1
Iron
Share this question
or