Telerik Forums
Fiddler Forum
3 answers
2.8K+ views

I'm struggling to make my browser fetch all files from local folder instead of all files from target online folder.
I want to achieve it using Fiddler's AutoResponder.
As I understood, I should write corresponding regular expressions for target online folder and for local folder as well. But I can't figure out how they should look. In another proxy debugger, Charles Proxy, it would be basically this easy:

local path: c:\local_folder

Same approach didn't work in Fiddler for me. Then I've found some example (https://groups.google.com/forum/#!topic/httpfiddler/BWfUoCuih8k) by Eric Lawrence, but either it is irrelevant, or I'm applying it incorrect. Anyway it doesn't work for me too. I've tried something like this:

REGEX:C:\local_folder\$1

So, please, give me a hint, how regexps for replacing whole folder (online) to whole folder (local) should be written in Fiddler.

If there is another way beside regexps, I would like to know it as well.
Thank you!

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 25 Sep 2019
3 answers
1.2K+ views

Ive created a fiddlescript rule with the help of many people on this fourm, thank you.

The script would check for a specific json object from the get request in the decoded response body from an application and once the request response body has found   object:value, automatically send the a portion of the json value back to a different URI as a post request with the same header information such as cookies along with connection keep alive.

When the script is activated upon arrival of said content I receive an error. I assume its something to do with the json object value.

static function OnBeforeResponse(oSession: Session) {
    if (oSession.oResponse.headers.ExistsAndContains("Content-Type", "application/json")) {
        oSession["ui-backcolor"] = "blue";
        oSession.utilDecodeResponse();
    }
    if (oSession.oResponse.headers.ExistsAndContains("Content-Type", "application/json") && oSession.utilFindInResponse("faceId", false) > -1) {
        oSession["ui-backcolor"] = "green";
        oSession.utilDecodeResponse();
        var oBody = System.Text.Encoding.UTF8.GetString(oSession.requestBodyBytes);
        var j = Fiddler.WebFormats.JSON.JsonDecode(oBody);
        var facId = j.JSONObject["faceId"];
        var reqBod = '{"faceId":"' + facId + '"}';
        oSession.oRequest.headers.HTTPMethod == "POST";
        oSession.utilSetRequestBody(reqBod);
        oSession.url = "https://urltosendpostrequest.com/Search";
        FiddlerObject.utilIssueRequest(oSession);
    }

Ive been referencing many different pages and fiddlerscripts on this topic and have gotten this far only from a little knowledge of coding and much googling. One code stood out. I dont take credit for this.


Simeon
Telerik team
 answered on 25 Sep 2019
6 answers
260 views
hi,

I'm using ec2 instance (with putty), connected to US proxy.
When I'm using fiddler, my IP is changing to local IP and I can't get the site content I want to monitor (which will be presented only for US proxy).

When unchecking "act as system proxy on startup" in connection settings, fiddler doesn't monitor anything, also I can't change my browsers LAN settings as putty connection won't work.

I need a solution in order to monitor all HTTP traffic without loosing my IP (given by ec2 instance proxy).
Thanks in advance,
Eyal.
Eric R | Senior Technical Support Engineer
Telerik team
 answered on 24 Sep 2019
1 answer
1.1K+ views

Hello,

I need Fiddler, acting as a permanent proxy, to catch requests for a specific host, and add a Referer Header to each of these requests. How this can be implemented?

Thanks a lot.

Kammen
Telerik team
 answered on 24 Sep 2019
6 answers
358 views

Hi,

I've developed an Fiddler extension (MockingBird) and would like to submit it to Telerik to list it on Extension page which I think will help others because any user of the producer will certainly to go company's forum/website for help. Below is the link to my extension:

https://github.com/hemantsharma-io/MockingBird

The interesting idea is to convert a Fiddler session to any other text format and use it further in another favorite tool for debugging/analysis with a simple mustache template e.g. i've created a template to convert Fiddler session to JMX test plan with just a drag-n-drop. More templates can be added locally for specific use cases.

I'm open to add/update detail in repo's wiki if required.

Thanks,

Hemant

Kammen
Telerik team
 answered on 24 Sep 2019
1 answer
475 views

Hello,

 

I am trying to use the .NET Standard beta of fiddlercore. A very simple test application results in the following error:

 

```

Unhandled Exception: System.ComponentModel.Composition.ImportCardinalityMismatchException: No exports were found that match the constraint:
        ContractName    Telerik.NetworkConnections.NetworkConnectionsManager
        RequiredTypeIdentity    Telerik.NetworkConnections.NetworkConnectionsManager
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
   at Fiddler.Proxy..ctor(Boolean , ProxySettings ) in C:\JenkinsHome\jobs\FiddlerCoreForNetStandardReleaseBuild\workspace\Fiddler2\Common\Core\Proxy.cs:line 208
   at Fiddler.FiddlerApplication.Startup(FiddlerCoreStartupSettings startupSettings) in C:\JenkinsHome\jobs\FiddlerCoreForNetStandardReleaseBuild\workspace\Fiddler2\Common\FiddlerApplication.cs:line 732

```

 

I have added all the FiddlerCore nuget packages and ensured that Telerik.NetworkConnections.dll and Telerik.NetworkConnections.Windows.dll are present in the application directory. I also have cleared the ComponentCache for Visual Studio.

 

Please advise.

 

Kind regards

Simeon
Telerik team
 answered on 23 Sep 2019
3 answers
212 views
---------------------------
Uncaught Exception in Session #35
---------------------------
Fiddler has encountered an unexpected problem. If you believe this is a bug in Fiddler, please copy this message by hitting CTRL+C, and submit a bug report at http://www.telerik.com/forums/fiddler.

Cannot access a disposed object.

Object name: 'WinHttpAutoProxy'.

Type: System.ObjectDisposedException
Source: Fiddler
   at “.Ÿœ.ƒ•(String •, String& ‘‰, String& ”) in C:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\FiddlerCore\PlatformExtensions\Windows\FiddlerCore.PlatformExtensions.Windows.Shared\WinHttpAutoProxy.cs:line 52

   at .‚•.œ(String –, IPEndPoint& žœ) in C:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\AutoProxy.cs:line 142

   at Fiddler.Proxy.FindGatewayForOrigin(String sURIScheme, String sHostAndPort) in C:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\Proxy.cs:line 808

   at Fiddler.ServerChatter.Œ() in C:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\ServerChatter.cs:line 1056

   at Fiddler.Session.‘() in C:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\Session.cs:line 3725

   at Fiddler.Session.(Object ) in C:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Common\Core\Session.cs:line 3500


Fiddler v5.0.20182.28034 (x64 AMD64) [.NET 4.0.30319.42000 on Microsoft Windows NT 6.1.7601 Service Pack 1] 
---------------------------
确定   
---------------------------
Eric R | Senior Technical Support Engineer
Telerik team
 answered on 19 Sep 2019
1 answer
193 views
Hello,

I would like to know if I can code a dll to autoresponder without running Fiddler or having Fiddler installed on the PC

so when I run it then will stop change the url to another url

Thank you.
Eric R | Senior Technical Support Engineer
Telerik team
 answered on 18 Sep 2019
0 answers
199 views

     Hi,

I am trying to invoke the execaction from powershell script. Is there any reference document for the valid commands for the same? I would like to export html, xml and .saz reports.

 

Many thanks.

amrita
Top achievements
Rank 1
 asked on 18 Sep 2019
2 answers
1.3K+ views
When I try to run FiddleApplication.Startup(startupConfig)

FiddlerCoreStartupSettings startupSettings = newFiddlerCoreStartupSettingsBuilder() .ListenOnPort(0) .RegisterAsSystemProxy() .DecryptSSL() .Build(); FiddlerApplication.Startup(startupSettings);

In my log events I see:

Starting FiddlerCore/4.6.20191.7809 ...
** LogString: !WARNING: The DefaultLAN Gateway information could not be obtained.
** NotifyUser: Error - Failed to register Fiddler as the system proxy.


I'm running the process as administrator.

Note: When I run the normal Fiddler UI application everything works fine. Even running an older FiddlerCore version (2.3) is able to register itself as the system proxy.


P.S - I also see a warning in Visual Studio - "Please use Telerik.NetworkConnections.NetworkConnectionsManager to register the FiddlerCore Proxy as the system proxy." But I couldn't find any documentation/examples using NetworkConnectionsManager and I couldn't figure out how to use it.
fiddlercore fiddler-dev
Eric R | Senior Technical Support Engineer
Telerik team
 answered on 12 Sep 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?