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

FiddlerCore Without Registering As A System Proxy

1 Answer 179 Views
Extensions and Customization
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 04 May 2016, 04:05 PM

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

 

1 Answer, 1 is accepted

Sort by
0
Tsviatko Yovtchev
Telerik team
answered on 09 May 2016, 05:33 PM
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
Tags
Extensions and Customization
Asked by
Ryan
Top achievements
Rank 1
Answers by
Tsviatko Yovtchev
Telerik team
Share this question
or