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

FiddlerCore .NET core/.net Standard doesn't capture anything..

2 Answers 232 Views
FiddlerCore
This is a migrated thread and some comments may be shown as answers.
Piotr
Top achievements
Rank 1
Piotr asked on 12 Jan 2018, 09:02 AM

Hi

I've just downloaded FiddlerCore and I plan to use it my .net core project.

My .net Core SDK version is v2.1.4 . The latest one when I write this post. 

I use the sample code, I did "dotnet restore -s <path_to_nupkg_files>" , run the code trusted the certificate...and..... nothing got captured.

Edge,IE. Nothing . Presssing L, S shows nothing..

 

Any ideas what I'm doing wrong ?

 

Best regards

 

 

 

2 Answers, 1 is accepted

Sort by
0
Simeon
Telerik team
answered on 15 Jan 2018, 11:17 AM
Hi,


Unlike FiddlerCore, FiddlerCore for .NET Standard does not change the system proxy settings to point to the localhost port which it opens by default. The reason for this change is that FiddlerCore for .NET Standard is a library which could be used on many platforms in various ways and it could not predict how exactly the user would like to set up its proxy settings.

It is expected that the user will change the proxy settings for all applications whose traffic must pass trough FiddlerCore for .NET Standard after it is started and revert the proxy settings of these applications before FiddlerCore for .NET Standard is stopped. (either manually or programmatically)

However, if you are running on Windows platform, you could add the RegisterAsSystemProxy flag to the FiddlerCoreStartupFlags enumeration which you are passing to the FiddlerApplication.Startup method. Please, note that for all other platforms this will throw a PlatformNotSupported exception.

Regards,
Simeon
Progress 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
0
Piotr
Top achievements
Rank 1
answered on 17 Jan 2018, 12:45 AM

Thank you. Indeed

oFCSF = (oFCSF | FiddlerCoreStartupFlags.RegisterAsSystemProxy);

 

helped. 

Best regards

Tags
FiddlerCore
Asked by
Piotr
Top achievements
Rank 1
Answers by
Simeon
Telerik team
Piotr
Top achievements
Rank 1
Share this question
or