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

saving or specifing options when fiddler2 starts

1 Answer 30 Views
FiddlerCore
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 30 Jan 2014, 07:30 PM
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.

1 Answer, 1 is accepted

Sort by
0
EricLaw
Top achievements
Rank 1
answered on 31 Jan 2014, 10:00 PM
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.

Thanks!
Tags
FiddlerCore
Asked by
Jason
Top achievements
Rank 1
Answers by
EricLaw
Top achievements
Rank 1
Share this question
or