By default, the upstream gateway for each session is inherited from the IE/Windows default proxy setting that was set when Fiddler starts up.
However, on each session it can be overridden using the X-OverrideGateway
Session Flag.
So, to build your own QuickExec action, do this:
Inside Rules > Customize Rules > Handlers
, add
public static var m_GatewayOverride = null;
Inside OnBeforeRequest
, add
if (null != m_GatewayOverride) { oSession["X-OverrideGateway"] = m_GatewayOverride;
Inside the OnExecAction
method's switch
statement, add
case "gw":
if (sParams.Length<2) {m_GatewayOverride = null; return;}
m_GatewayOverride = sParams[1]; FiddlerObject.StatusText="Set Gateway to " + m_GatewayOverride;
return true;
Then, you can type things like gw myProxy:1234
to force subsequent requests to myProxy:1234
or simply type gw
to clear the override.