Only log requests for single host

3 posts, 0 answers
  1. aland
    aland avatar
    2 posts
    Member since:
    Oct 2014

    Posted 15 Oct 2014 Link to this post

    Hi, I'm wondering if it's possible to configure Fiddler to only log requests for a single host (e.g. my dev vm)?
    It would make it easier to only see the traffic I am actively working with.
    Thanks!
  2. aland
    aland avatar
    2 posts
    Member since:
    Oct 2014

    Posted 15 Oct 2014 in reply to aland Link to this post

    // In OnBeforeRequest
    if (!oSession.HostnameIs("example.com")) {
        oSession["ui-hide"] = 1;
    }

    I figured it out with the above script - I guess it could be more clever and use an array of hosts, but it works
  3. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 16 Oct 2014 Link to this post

    You can also use the boxes at the top of the Filters tab.

    If you do use the ui-hide flag, rather than doing = 1, a best practice is to set it to a string explaining what is hiding the session (e.g. oSession["ui-hide"] = "fiddlerscript - only my host"; ) as this can help you troubleshoot later using the Help > Troubleshoot Filters command.

    Regards,
    Eric Lawrence
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top