Using Autoresponder to block calls based on header information?

2 posts, 0 answers
  1. John
    John avatar
    2 posts
    Member since:
    May 2018

    Posted 01 May 2018 Link to this post

    I am trying to figure out if the Autoresponder can block a call based on not only the URL but the information in the header so that I can target specific calls from a given url instead of all calls for a given URL. 


    I am having difficulty figuring out if its possible and if so what syntax for the rule I might use.



  2. Alexander
    Alexander avatar
    383 posts

    Posted 10 May 2018 Link to this post


    Rather unfortunately, currently Fiddler's AutoResponder does not support matching session by URL and Header/s.

    However, you can achieve this result using FiddlerScript and the AutoResponder in conjunction. There are many ways of doing this, but one solution would be the following:
    1. Edit the OnBeforeRequest method in the FiddlerScript tab. Add your logic for matching the session using the oSession instance passed as argument. You can use the fullUrl field and RequestHeaders property to determine if the session should be matched by the AutoResponder.
    2. If the session should be matched by the AutoResponder set custom request header, e.g. "CustomAutoResponderHeader". The value should not matter.
    3. In the AutoResponder create rule that matches sessions which have the "CustomAutoResponderHeader" header.

    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