Skip to content

Instantly share code, notes, and snippets.

@ericlaw1979
Created September 28, 2021 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericlaw1979/7ecc66ec28a9e0e236fc9dc17bccb760 to your computer and use it in GitHub Desktop.
Save ericlaw1979/7ecc66ec28a9e0e236fc9dc17bccb760 to your computer and use it in GitHub Desktop.
Enable Fiddler to load NetLog files via command line directive
static function OnBoot() {
var s = Environment.GetCommandLineArgs();
for (var i=1; i<s.Length; i++){
if (s[i].StartsWith("-netlog:")){
// FiddlerObject.log("Command line told us to import Netlog " + s[i].Substring(8));
var oImportOptions = FiddlerObject.createDictionary();
oImportOptions.Add("Filename", s[i].Substring(8));
FiddlerApplication.DoImport("NetLog JSON", true, oImportOptions, null);
}
}
}
@ericlaw1979
Copy link
Author

https://twitter.com/ericlaw/status/1442927713874956292

lol. So, it turns out the reason that this is so poorly documented is that there's no reason to do this anymore.
ProfferFormat takes an optional third parameter specifying which file extensions an importer handles.
I've updated the importer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment