Make request with fiddler based off a timer

Fiddler is a great tool for debugging web requests. Things like the composer section allow you to concoct requests and then test out the responses you get. If you’re using composer and look at the raw view you will see something like:

If you want to run this request every N seconds you can setup a quick script to achieve this:

The full script will be shown below, you need to simply add into the class Handlers code, save the script and then use the new menu options that get added to the Tools menu (Request by Timer, Stop Timer and Request Once):

One thing to note, in your script ensure you keep the trailing \r\n\r\n in the request url otherwise you’ll receive an error.

Enjoy

2 thoughts on “Make request with fiddler based off a timer

  1. Script works fine thank you! How to do multiple requests with this timer?

    I tried to add variable in this section but it does not work
    public static function OnTimer(sender: Object, ea: EventArgs)
    {
    var s = “GET http://www.bbc.co.uk/ HTTP/1.1\r\nHost: http://www.bbc.co.uk\r\n\r\n”;
    var t = “GET blablabla\r\n\r\n”;

    • The call: FiddlerObject.utilIssueRequest(s); is the part that actually issues the request so I’d have thought you could dupe the code for each request you want to make.

Leave a Reply

Your email address will not be published. Required fields are marked *