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

FiddlerCore Proxy for specific hosts/program

3 Answers 302 Views
FiddlerCore
This is a migrated thread and some comments may be shown as answers.
Methe
Top achievements
Rank 1
Methe asked on 02 Jun 2020, 01:45 PM

Hi

Is it possible to create FiddlerCoreStartupSettings to intercept requests for a specific host only? Or alternatively a specific program.exe?

I recognise there is a bypassHost options, but its not clear how to add multiple hostnames to that string?

Thanks

Methe

3 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 03 Jun 2020, 11:31 AM

Hello Methe Crain,

 

It sounds that in your case the most straight-forward solution would be to change the settings in your app (if that is possible) and let FIddlerCore listen for changes but without attaching it. Attaching means setting the system proxy settings to  127.0.0.1:8888 and all applications that are using the system proxy will effectively start using Fiddler as a proxy.

In your case, you could use the startup settings (base example):

var startupSettings = new FiddlerCoreStartupSettingsBuilder()
                .ListenOnPort(FiddlerCoreListenPort)
                .DecryptSSL();

FiddlerApplication.Startup(startupSettings);

 

Regards,
Nick Iliev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Methe
Top achievements
Rank 1
answered on 03 Jun 2020, 01:24 PM
Hi yeah I thought of that initially but the problem is I can't change the settings of the app, so I have to use a system-wide proxy at present. Is there a way to redirect an application or specific hostnames to use the fiddler proxy? I looked into using the windows hosts file but that doesn't work
0
Nick Iliev
Telerik team
answered on 08 Jun 2020, 05:08 AM

Hi Methe,

 

The only other option I could think of is to write your own implementation of Telerik.NetworkConnections but this is not a trivial job. See this thread for more details on how to work with Telerik.NetworkConnections .

 

Regards,
Nick Iliev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
FiddlerCore
Asked by
Methe
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Methe
Top achievements
Rank 1
Share this question
or