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

Only log requests for single host

2 Answers 9 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
aland
Top achievements
Rank 1
aland asked on 15 Oct 2014, 09:01 AM
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 Answers, 1 is accepted

Sort by
0
aland
Top achievements
Rank 1
answered on 15 Oct 2014, 12:33 PM
// 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
0
Eric Lawrence
Telerik team
answered on 16 Oct 2014, 04:35 PM
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.

 
Tags
Fiddler Classic
Asked by
aland
Top achievements
Rank 1
Answers by
aland
Top achievements
Rank 1
Eric Lawrence
Telerik team
Share this question
or