saving or specifing options when fiddler2 starts

2 posts, 0 answers
  1. Jason
    Jason avatar
    1 posts
    Member since:
    Jan 2014

    Posted 30 Jan 2014 Link to this post

    I am trying to set the user-agent so it defaults to a specific user-agent. example IE 9 (win 7) when fiddler2 starts?

    I have to set it each time i start fiddler2 as it defaults for disabled.  (Rules -> User-Agents-> choose)

    I didn't see a way to save this setting so it defaults for a specific user agent, and am looking for a way to "save" or set this option via command line when fiddler2 starts.

  2. EricLaw
    EricLaw avatar
    67 posts
    Member since:
    Oct 2012

    Posted 31 Jan 2014 in reply to Jason Link to this post

    Hi, Jason! Some of Fiddler's rules are persisted from run to run and others are not. The User-Agent emulation defaults to resetting every time Fiddler starts, but you can easily change this.

    Click Rules > Customize Rules.
    Scroll to the line that reads RulesString("&User-Agents", true)
    Just after that line, add a new line: BindPref("fiddlerscript.rules.UserAgentSetting")

    Now, Fiddler will preserve the value of that setting using the Preferences engine. Now, there's one caveat here: Fiddler doesn't currently correctly re-mark the Active string's menu item when the menu is redrawn after Fiddler restarts. I'll look into fixing that for the next build.

Back to Top