defining http proxy for fiddler to use

28 views
Skip to first unread message

robertob

unread,
Apr 21, 2015, 11:06:53 PM4/21/15
to httpf...@googlegroups.com
I've been told that in order to hit some destinations I need to use some.host.address:8080 as my http proxy

Since a fiddler capture, and fiddler composer execution, end up using the fiddler app settings by default 127.0.0.1:8888 is there a place where I tell fiddler an actual http proxy for it to use when issuing requests?   Is it the tools | options | gateway | manual field settings I use for that?

EricLaw

unread,
Apr 22, 2015, 10:07:59 PM4/22/15
to httpf...@googlegroups.com
  1. By default, Fiddler adopts the IE/system proxy settings on startup.
  2. If you haven't set the desired proxy in IE or only want it used by Fiddler, yes, you can use Tools / Options / Gateway / Manual if you'd like the setting to apply to all requests.
  3. If you only want a given proxy used by certain requests, set oSession["x-overrideGateway"] = "proxyaddr:8080"; conditionally inside the OnBeforeRequest method of your FiddlerScript.

robertob

unread,
Apr 22, 2015, 10:51:13 PM4/22/15
to httpf...@googlegroups.com
thank you that helps.

robertob

unread,
May 6, 2015, 11:11:33 PM5/6/15
to httpf...@googlegroups.com
for the option to set http proxy fiddler uses only on certain requests is the following an appropriate application of what you suggested?

fiddler | ctrl-r | ctrl-f "function OnBeforeRequest" | insert following block at start of function
// this allows fiddler to use the specified http proxy only on certain requests
if (oSession.HostnameIs("somehost.somedomain.com")) { 
    oSession["x-overrideGateway"] = "somehttpproxy:8080"
}

EricLaw

unread,
May 9, 2015, 3:15:57 PM5/9/15
to httpf...@googlegroups.com
Yes, that's exactly what you'd do.
Reply all
Reply to author
Forward
0 new messages