Telerik Forums
Fiddler Forum
2 answers
451 views
I am using the following code to serve a local HTML file when the URL of a web request contains a certain keyword.

if (oSession.uriContains("keyword")) {
  oSession["x-replywithfile"] = "D:/content.html";
}

Instead of a local file, is it possible for Fiddler to reply with a web page hosted on a remote server? Something like this...

if (oSession.uriContains("keyword")) {
  oSession["x-replywithfile"] = "https://www.domain.com/content.html";
}

Thank you!

Alex
Alex
Top achievements
Rank 1
Iron
Iron
 answered on 20 Jan 2023
1 answer
224 views

The live traffic pane is showing a spinning animation as if it is loading something. It keeps going like this in a loop.

Please see attached image.

Nick Iliev
Telerik team
 answered on 16 Jan 2023
1 answer
267 views

I use fiddler can capture most of the traffic , such as:

https://freetestdata.com/wp-content/uploads/2022/02/Free_Test_Data_7MB_MP4.mp4

in the console of the chrome, I can see the media size , and can capture it in fiddler;

but I can't capture the video in web.telegram.org/z/ or  web.telegram.org/k/ , in the console of chrome it shows serviceworker and I can't see the size of the media; The video can play , why can't capture it? How does the video stream send request and come back from the site?

Can I capture the video in telegram ? or save the video stream?

Nick Iliev
Telerik team
 answered on 16 Jan 2023
2 answers
302 views

Hello,

where can I find all the possible prefs for Fiddler? I found a lot in a random ebook, but is there a documentation or source code where a list of all of them can be found? E.g. I know there's fiddler.config.path.captures, but is there one for the  CustomRules.js or just the whole Documents folder in general?

Regards

Przemek
Top achievements
Rank 1
Iron
 updated answer on 13 Jan 2023
16 answers
3.7K+ views
Any plans to add HTTP/2 support to Fiddler?
Nick Iliev
Telerik team
 answered on 12 Jan 2023
1 answer
481 views

Hello,

I am using Fiddler Everywhere and would like to do automated testing. 

I found this on your blog:  https://www.telerik.com/blogs/api-testing-with-telerik-fiddler#disqus_thread 

 However, I do not have the "API Test" tab.  I would appreciate any help you can give me. 

 

Thank you

Nick Iliev
Telerik team
 answered on 11 Jan 2023
1 answer
675 views
Is there any way possible to get your Public IP address within Fiddler Scripts (ScriptEditor in Customize Rules)? I attempted to use certain methods that you could do using C# (translated to Script language). I also thought that maybe It was possible to execute another script file (like powershell file) that could return a value within Fiddler Scripts... but so far could not find any way of retrieving public IP
Nick Iliev
Telerik team
 answered on 11 Jan 2023
1 answer
2.5K+ views

I have a device that broadcasts a "discovery" packet to port 5556 and would like to capture that.  How do i go about doing so?

 

Lini
Telerik team
 answered on 09 Jan 2023
2 answers
871 views

I have tried to run code and output log messages from OnWebSocketMessage() and OnBeforeResponse() but its not being apparently executed and no messages are in Log tab at all... so it just seems like its not even executing script file

 


 
E
Top achievements
Rank 1
Iron
 updated answer on 06 Jan 2023
1 answer
182 views

I have a general question towards setting a value of a response.

Imagine the following response body:


{
    "mobile-getjackpots-response": {
        "errorcodes": [
            "420"
        ],
        "jackpots": [
            {
                "gametype": "1",
                "jackpotamount": "1000000",
                "nextDrawDay": "thursday"
            }
        ]
    }
}

I want to create a rule to set ONLY the value of "jackpotamount" to a different value and I want it to do the change irrespectively of the value it currently has or the structure of the response body. I DO NOT want to constantly adjust the response via the manual response action. This creates too much overhead when the response body is larger.

This is want I want the response to look like.

{
    "mobile-getjackpots-response": {
        "errorcodes": [
            "420"
        ],
        "jackpots": [
            {
                "gametype": "1",
                "jackpotamount": "100",
                "nextDrawDay": "thursday"
            }
        ]
    }
}

 

I tried a find and replace rule shown in the attachment, but it resulted in this:

{
    "mobile-getjackpots-response": {
        "errorcodes": [
            "420"
        ],
        "jackpots": [
            {
                "gametype": "1",
                "jackpotamount": "100": "1000000",
                "nextDrawDay": "thursday"
            }
        ]
    }
}

I know that I should´ve used "jackpotamount": "1000000" for this to work, but this is exactly what I try to avoid, as I dont know beforehand, what the value will be that I want to change. 

I also tried it with the following regex, it should theoretically match the key-value-pair "jackpotamount": "SOME_AMOUNT"
https://regex101.com/r/u8r4IZ/1

(?:\"jackpotamount)(?:\"\s?:\s?\")(.*)(?:\")

This "cut off" the rest of the first jackpots object.

{
    "mobile-getjackpots-response": {
        "errorcodes": [
            "420"
        ],
        "jackpots": [
            {
                "gametype": "1",
                "jackpotamount": "100"
            }
        ]
    }
}
Rosen Vladimirov
Telerik team
 updated answer on 04 Jan 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?