FiddlerCore Proxy for specific hosts/program

4 posts, 0 answers
  1. Methe
    Methe avatar
    2 posts
    Member since:
    Jun 2020

    Posted 02 Jun Link to this post

    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

  2. Nick Iliev
    Admin
    Nick Iliev avatar
    482 posts

    Posted 03 Jun Link to this post

    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.
  3. Methe
    Methe avatar
    2 posts
    Member since:
    Jun 2020

    Posted 03 Jun in reply to Nick Iliev Link to this post

    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
  4. Nick Iliev
    Admin
    Nick Iliev avatar
    482 posts

    Posted 08 Jun Link to this post

    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.
Back to Top