Blocking PARTIAL URLs in Fiddler

4 posts, 0 answers
  1. Daniel
    Daniel avatar
    3 posts
    Member since:
    Sep 2017

    Posted 20 Sep 2017 Link to this post

    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?

  2. Daniel
    Daniel avatar
    3 posts
    Member since:
    Sep 2017

    Posted 21 Sep 2017 in reply to Daniel Link to this post

    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..."

  3. Alexander
    Admin
    Alexander avatar
    336 posts

    Posted 28 Sep 2017 Link to this post

    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
  4. Alexander
    Admin
    Alexander avatar
    336 posts

    Posted 28 Sep 2017 Link to this post

    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
Back to Top