How to change the gateway config by Fiddler Script?

225 views
Skip to first unread message

guoqing cai

unread,
Aug 21, 2016, 10:13:59 PM8/21/16
to Fiddler

Hi,
I'm in trouble when using fiddler. My team want to get some http-only cookies, and will to use Fiddler as a proxy to intercept them by Fiddler script.
But we have to use many proxies to hide real IP address, so how to change the gateway config by Fiddler Script?
I'm confused when learn fiddler script, and never find methods to change the gateway config by Fiddler Script.
Please help me, thanks!


EricLaw

unread,
Aug 22, 2016, 1:01:47 AM8/22/16
to Fiddler
The simplest thing to do is ignore the Tools > Options settings entirely. Inside Rules > Customize Rules > OnBeforeRequest, add a line at the top

   if (oSession.uriContains("whatever")) { oSession["x-overrideGateway"] = "123.123.123.213:1234"; }

The specified request will ignore the default gateway and will use the specified proxy (123.123.123.213 on port 1234) instead.
Reply all
Reply to author
Forward
0 new messages