FiddlerCore Without Registering As A System Proxy

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    1 posts
    Member since:
    May 2016

    Posted 04 May Link to this post

    Hello,

    I have a .NET Application that I need to alter some WCF traffic headers on.  The Microsoft folks told me there is no way to really inject the headers I need in the request and pick them up out of the response with the current framework.  What I would like to do is just add FiddlerCore to the application, and if the header isn't there on the outgoing request from my application, then I would like to add it.  (Real simple).

    I can get everything to work, however the events only fire if I register the FiddlerApplication as a system proxy.  I would like this transparent to the user so that it doesn't screw up their proxy settings in the OS. 

    Fiddler.FiddlerApplication.Startup(8877, false, false);
    Fiddler.FiddlerApplication.OnNotification += delegate(object sender, NotificationEventArgs oNEA) { System.Windows.Forms.MessageBox.Show("Here"); };

     

    The event never gets called in this case, however if I change this over to the below it does:

    Fiddler.FiddlerApplication.Startup(8877, true, false);
    Fiddler.FiddlerApplication.OnNotification += delegate(object sender, NotificationEventArgs oNEA) { System.Windows.Forms.MessageBox.Show("Here"); };

     

    Should the event be being fired if I have the RegisterAsASystemProxy turned OFF?

     

    Thanks

     

  2. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 09 May Link to this post

    Hi,

    FiddlerCore is in essence a proxy. It allows you to capture and monitor traffic but it gets the traffic itself by registering as the system proxy. So, it doesn't really look like you'll be able to use it in your scenario.

    Regards,
    Tsviatko Yovtchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top