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

Blocking PARTIAL URLs in Fiddler

3 Answers 1011 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 20 Sep 2017, 09:51 PM

Is there any way to block partial URLs in Fiddler? I know that you can block an entire URL, but say the end of this specific URL contains the time in it, it will be a different URL every single time generate that request.

 

 

I currently am blocking URLs by going into my autoresponder and pasting A URL in the following way:

"if request matches..." (example)

"then respond with..." (*reset) 

 

My idea would be to create the same autoresponder but instead of "if request matches...", having "if request contains..." or something along that lines, is this possible?

3 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
answered on 21 Sep 2017, 02:33 PM

Ok so I was able to figure that out but my next question is how do I block or reset a response based on something specifically stored in the request body.

 

"If request body contains..." "then respond with..."

0
Alexander
Telerik team
answered on 28 Sep 2017, 08:48 AM
Hello,

The "Rule Editor" text box for the "If request matches..." has a little down-pointing arrow. When you click it you are presented with some example rules. One of them starts with "URLWithBody", which is the one we are interested in. You can use it for starting point. It works as follows: URLWithBody:match_url match_body. The divisor is the space character. Just replace match_url with the rule you came up by yourself for matching the URL and replace match_body with a regex matching the body you want to match.

Regards,
Alexander
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Alexander
Telerik team
answered on 28 Sep 2017, 08:49 AM
Hello,

The "Rule Editor" text box for the "If request matches..." has a little down-pointing arrow. When you click it you are presented with some example rules. One of them starts with "URLWithBody", which is the one we are interested in. You can use it for starting point. It works as follows: URLWithBody:match_url match_body. The divisor is the space character. Just replace match_url with the rule you came up by yourself for matching the URL and replace match_body with a regex matching the body you want to match.

Regards,
Alexander
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Fiddler Classic
Asked by
Daniel
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or