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

Using Autoresponder to block calls based on header information?

1 Answer 374 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 01 May 2018, 05:53 PM

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.

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 10 May 2018, 03:46 PM
Hello,

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.

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
John
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or