Telerik Forums
Fiddler Forum
1 answer
146 views

Hello,

I was wondering if there's some sort of offline documentation bundle that I can use while working offline (for example on the road or in an isolated network).

Thanks.

Eric Lawrence
Telerik team
 answered on 05 Nov 2015
3 answers
410 views

Hello, this is my first time using FiddlerCore and am trying to grasp the concepts behind it. I am developing a simple project that should block websites that are specified in a database, and block all sites if the user is browsing at a time that is set by the administrator. It is for a school project. For now, I have hard-coded the site I want blocked: "facebook.com". Below is the code:

 

void FiddlerApplication_BeforeRequest(Session oSession)
        {
            if (oSession.url.Contains("facebook.com"))
            {
                oSession.utilCreateResponseAndBypassServer();
                oSession.oResponse.headers.SetStatus(307, "Redirect");
                oSession.oResponse["Cache-Control"] = "nocache";
                oSession.oResponse["Location"] = "http://microsoft.com";
                oSession.utilSetResponseBody(GenerateErrorMessage("Internet Time", "The request was set at a time interval that is blocked by the " +
                    "administrator(s) of this computer", oSession.fullUrl, "--"));
                return;
            }
        }

 However, I am getting an ERR_TUNNEL_CONNECTION_FAILED message in google chrome and I am getting a page cannot be displayed in internet explorer. Basically what I would like is if a site is block, display the html in the browser specified in oSession.utilSetResponseBody(GenerateErrorMessage("Internet Time", "The request was set at a time interval that is blocked by the " + "administrator(s) of this computer", oSession.fullUrl, "--"));

 

This works in all sites that do not have "https:". For ex: I am getting my desired result that I want if I try to block "microsoft.com".

Any help is appreciated. 

Mahbub
Top achievements
Rank 1
 answered on 04 Nov 2015
1 answer
188 views

A while ago I wrote a simple .har parser which I still use sometimes. It works perfectly fine for the files from FF and Chrome. Recently I have tried Fiddler and found it very useful, however, my parser failed to parse Fiddler' .har

When I looked into this .har I can see it has no line delimiters which makes it hard to parse.

Has it been done on purpose or I can change it somehow? Basically, I would like to have the same format as produced by Chrome and FF

Eric Lawrence
Telerik team
 answered on 04 Nov 2015
7 answers
908 views

Hi,

I have a web application that sends an XML POST from the browser and I am using Fiddler to capture the body of the XML being sent out to ensure that the proper information is being sent from the application. I can see the POST to localhost:12345 captured in Fiddler, but when my co-worker clicks on the TextView tab in the Inspectors it is empty. This works fine on my machine and I am able to view the XML information in the TextView tab. This also works as expected for some of my other co-workers so it seems to be something specific with her machine that is interfering with the ​request. I observe this behavior whether she is connected to VPN or in the office using the network directly it doesn't appear to be an issue with the VPN.

We are using IE to view this information and my co-workers and I are using versions 10 and 11. I have looked at both setups (on my machine and my co-worker) and they are identical. Settings in my Connections tab for Fiddler Options are set to port 8888, allow remote computers to connect, reuse client connections, reuse server connections, act as a system proxy on startup, monitor all connections and <-loopback>; as a bypass for Fiddler. I tried to remove the loopback on my co-worker's machine but that did not resolve the issue. The gateway is set to use system proxy and HTTPS is set to capture and decrypt for all processes.

I have also had her try running Fiddler as an Admin and tried disabling the anti-virus programming we have on our company-issued laptops but neither of those seemed to have worked. Is there something else I'm missing here? Thanks.

 

Best Regards,

Randy

Randy
Top achievements
Rank 1
 answered on 02 Nov 2015
1 answer
949 views

Hello,

I downloaded the most new version of Fiddler.

When I start it and enable "capture traffic" option, I can't surf the internet, and there is no capturing.

Heres the image of the message I get on firefox:

http://www.pntbrother.com/wp-content/uploads/2014/11/proxy_server_refusing_connection.jpg

Same on chrome and edge.

Why its happening?

 

 ​

Eric Lawrence
Telerik team
 answered on 02 Nov 2015
2 answers
619 views

Thanks for FiddlerCore and the quick responses to questions on this forum.
I'm trying to intercept a webpage response, change some html, and have it display my change in the browser:

private void FiddlerApplication_BeforeResponse(Session oSession)

{

oSession.bBufferResponse = true;

oSession.utilDecodeResponse();

 

oSession.utilReplaceInResponse("TEXT-TO-REPLACE", "NEW-TEXT");

}

I should note that I'm using Windows 10, which I'm not sure if it makes any difference.  I know that the oSession's ResponseBody text is updated when I use this code, however it seems like it doesn't get passed on to the browser from this point.  Am I missing something?  I've even tried utilSetResponseBody(updatedBodyText), however this doesn't seem to update the returned page either.  Any thoughts or help would be greatly appreciated.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 
 

 
Eric Lawrence
Telerik team
 answered on 02 Nov 2015
6 answers
2.6K+ views

When running Fiddler with HTTPS decryption enabled, browsing to Google (and many other sites) results in a Firefox error page "This Connection is Untrusted", with the following error info:

"This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox only connect to it securely. As a result, it is not possible to add an exception for this certificate.​"

The Technical details say:

"www.google.com uses an invalid security certificate. The certificate is only valid for *.google.com (Error code: ssl_error_bad_cert_domain)"

I've already imported the Fiddler root cert into Firefox's CA store. The problem has only started occurring with recent Firefox versions.

Does anyone know how to resolve this?

Thanks,

 

    --- John.

 

Eric Lawrence
Telerik team
 answered on 02 Nov 2015
1 answer
1.7K+ views

I apologize if this question has been answered in another thread -- but I haven't seemed to find the answer yet.

I am attempting to write an app using FiddlerCore.  However, while my app is running, ​at least one Windows 10 app (News) does not respond.  By that I mean ​it tries to retrieve data ​but instead returns a "Service is Not Available" message.  The same thing happens if I try to use the standard Fiddler app. 

However as soon as I disable the Proxy server in Windows, all is well again.  So I'm assuming this has something to do with it, I'm just not sure how to go about fixing it.  Any help would be greatly appreciated.  Thanks!

Eric Lawrence
Telerik team
 answered on 02 Nov 2015
1 answer
189 views

Hello,

ClamAv finds the fidler installation (fidler4setup.exe) as a virus: ClamAV Win.Trojan.Kazy-2656

virus total link: https://www.virustotal.com/en/file/be33d6d0381c22355c0c6cab60aa518bd334e5bcca7107a829aeb784b56b1d97/analysis/

I've submitted the file as a false positive at http://www.clamav.net.

 

Regards,

arik@odi-x.com

Eric Lawrence
Telerik team
 answered on 02 Nov 2015
8 answers
579 views

Is it possible to use the command line to replay SAZ files with Fiddler? While I understand that you can specify a SAZ file to open with Fiddler from the command line, I am looking for something that will perform the following steps:

* Replay the SAZ file

* Exit with a reasonable return code

If this process could be run headless, that'd be even better. While this doesn't seem too much to ask, I haven't had much luck figuring it out myself. This will be part of a larger, automated process.

If I'm barking up the wrong tree, what is the recommended way to replay SAZ files in an automated fashion?

Iris
Top achievements
Rank 1
 answered on 30 Oct 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?