Telerik Forums
Fiddler Forum
0 answers
255 views

Hi,

I am trying to download a 206 response type content such as mp4.

I am able to use the below code. But when i try to open the file it says it got corrupted.

FiddlerApplication.BeforeResponse += delegate(Fiddler.Session oS)
            {
              if ((oS.responseCode == 200) && (oS.responseBodyBytes.Length > 1000))
              {
                string sMIME = oS.oResponse.MIMEType.ToLower();
                if (sMIME.StartsWith("audio/") ||
                    sMIME.StartsWith("video/") ||
                    sMIME.Contains("media"))
                {
                    oS.utilDecodeResponse();
                    oS.SaveResponseBody();                  
                }
              }
            };

Please help

 

Thanks,

Dhana

Dsek
Top achievements
Rank 1
 asked on 03 Apr 2017
0 answers
550 views
I'm trying to use Fiddler to modify response headers.  I am following instructions from  http://docs.telerik.com/fiddler/KnowledgeBase/FiddlerScript/ModifyRequestOrResponse, and the results look good in the Fiddler inspector.  However, when I look at what response is received in a browser debugger, it looks like it is getting the unmodified headers.

In OnBeforeResponse I have the following javascript:

oSession.oResponse["testHeader1"] = "test header 1 value";
oSession.oResponse.headers.Add("testHeader2", "test header 2 value");
oSession.oResponse["Content-Type"] = "modified content type";

It is adding new headers in two different ways and modifying an existing header.  In the attached screenshot you can see that in the Fiddler inspector the headers are modified as expected, but in the Chrome debugger the headers do not match (the headers that were supposed to be added are not there, and the modified header has it's original value).  I have also tried the same test with the Postman chrome add-on, and with Firefox, and they all show the same behaviour.

The Fiddler version is v4.6.20171.7553

I would welcome advice if I am making a silly mistake, but from my testing is appears to be an issue with Fiddler.  If you need any more information please let me know.

Thanks,
Alan
Alan
Top achievements
Rank 1
 asked on 03 Apr 2017
1 answer
96 views

What exactly does it mean? "System Proxy"? is it the same as the proxy showed up in IE?

Will this affect my windows service running under system account?

Thanks

Tsviatko Yovtchev
Telerik team
 answered on 03 Apr 2017
1 answer
1.1K+ views

Hello Telerik, i'm encountering issue and the post of the title is self explanatory i added this code inside "OnBeforeRequest";

I didn't included all the headers it wasn't needed, the request itself is fine but the problem is that each of my variables are constantly re-initialized since it's inside OnBeforeRequest and i can't use anything like a "for" to loop.

What i need to do is to make a function that wait "https://testAPI.trylobby.info/online_1v1/start/" to be intercepted (HTTPS POST) this should read the Request body (room_id) send another request and "this" 4 times, i have try to create a new function but when i use var oSession = Fiddler.Session; it return me an error.

How can i simply use a damn "for" loop inside OnBeforeRequest without having my variable reset each time ? The thing is that i have more than 1 Client and it's kinda complex since it will receive more than 1 time the same request, while i also need to read the room_id each time the request is sent, if it's an already used id then don't send anything, for that i need to read the body of each request or make an array, but again the array is always "cleaned" due to the variable reset each time in the function so Hummm.

Any help would be appreciated, thank you and awesome software since years :) .

if(m_UseMSA) //This is a rule
        {
            var CurrentRoom = "";
            var UsedRoom = new Array;
            var i = 0;
            if(oSession.uriContains("https://testAPI.trylobby.info/online_1v1/start/"))
            {
                oSession.utilDecodeRequest();
                var Body = System.Text.Encoding.UTF8.GetString(oSession.requestBodyBytes);
                if(i<5)
                {
                    var BodyAsByte: byte[] = System.Text.Encoding.UTF8.GetBytes(Body);
                    var request: HTTPRequestHeaders = new HTTPRequestHeaders("/online_1on1/battle_start/",[Header1,Header2,Header3,Header4,Header5,Header6,Header7,Header8,Header9,Header10,Header11,Header12,'Content-Length: ' + Body.Length.ToString()]);
                    request.HTTPMethod = "POST";
                    request.UriScheme = "https";
                
                    var Dictionary = new System.Collections.Specialized.StringDictionary();
                    var newSession = FiddlerApplication.oProxy.SendRequestAndWait(request,BodyAsByte,Dictionary,null);
                    if(200 == newSession.responseCode)
                    {
                        i++;
                    }
                    
                }
                //FiddlerObject.alert(UsedRoom[0]);
            }
        }

 

Nightshades
Top achievements
Rank 1
 answered on 03 Apr 2017
0 answers
155 views

Just a quick note that running "mono Fiddler.exe" (Fiddler 4.6.20171.14978; Linux Mint 18.1 32-bit; mono-complete installed; mono certificates synchronised) produces the following output on the command line:

can not parse as value of type 'i':
  ""
  ^^
can not parse as value of type 'i':
  ""
  ^^
The program itself seems to run fine, in my limited testing.

As a side note, is it possible that you could make the version number in the Help window selectable and copyable to make it easier to paste the version number here?

 

Karelian
Top achievements
Rank 1
 asked on 30 Mar 2017
2 answers
129 views
Hi,

I've got an application developped on Windows Mobile 6 and I would debug HTTP requests when I plug my device on my PC (in USB).
I have already tried to configure proxy (with "FIDDLERSERVER:8888") as indicated in this link : http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/MonitorPocketPC.

Is it possible to do this job with Fiddler? If so, say me how to do!

Best regards
Brandon
Top achievements
Rank 1
 answered on 29 Mar 2017
1 answer
100 views

Has the "Privacy" add-on been baked into Fiddler? I installed it separately a long time ago. Now I've updated Fiddler and wish to remove Privacy. However, it does not appear in the list of installed extensions, and I'm not seeing a DLL that might be associated with it. And yet the Privacy menu is showing.

Can Privacy be removed?

·
Top achievements
Rank 1
 answered on 29 Mar 2017
8 answers
447 views

As soon as I enable the proxy and try to load an https site with chrome or firefox, I get this message :

Your connection is not private
Attackers might be trying to steal your information from www.google.ca (for example, passwords, messages or credit cards). 
NET::ERR_CERT_AUTHORITY_INVALID

 

I did import the generated certificate from fiddler to my cert store on Unbutu(16.04) and I imported it on Chrome as well..

I don't know what i'm doing wrong :(

Patrick Laramée
Top achievements
Rank 1
 answered on 28 Mar 2017
10 answers
240 views

On first launch, it show an error dialog ( see attached screenshot), after click the button, it crashes.

 

➜  fiddler-linux uname -a                
Linux nil 4.8.0-39-generic #42~16.04.1-Ubuntu SMP Mon Feb 20 15:06:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
➜  fiddler-linux mono --version  
Mono JIT compiler version 4.8.0 (Stable 4.8.0.495/e4a3cf3 Wed Feb 22 18:30:58 UTC 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            sgen
➜  fiddler-linux mono Fiddler.exe
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentOutOfRangeException: Value '-2147483648' must be greater than or equal to 0.
Parameter name: SmallChange
  at System.Windows.Forms.ScrollBar.set_SmallChange (System.Int32 value) [0x0001c] in <e37081a3704b4473a59cdf5048ad96bc>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ScrollBar:set_SmallChange (int)
  at System.Windows.Forms.ListView.CalculateScrollBars () [0x00247] in <e37081a3704b4473a59cdf5048ad96bc>:0 
  at System.Windows.Forms.ListView.CalculateListView (System.Windows.Forms.ListViewAlignment align) [0x000f5] in <e37081a3704b4473a59cdf5048ad96bc>:0 
  at System.Windows.Forms.ListView.Redraw (System.Boolean recalculate) [0x00029] in <e37081a3704b4473a59cdf5048ad96bc>:0 
  at System.Windows.Forms.ListView.set_View (System.Windows.Forms.View value) [0x00097] in <e37081a3704b4473a59cdf5048ad96bc>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ListView:set_View (System.Windows.Forms.View)
  at Fiddler.frmViewer.InitializeComponent () [0x03e23] in <bcca41f124814dd9a74204fd482fb6d7>:0 
  at Fiddler.frmViewer.NotifyInvalidate (System.Drawing.Rectangle invalidatedArea) [0x00011] in <bcca41f124814dd9a74204fd482fb6d7>:0 
  at (wrapper remoting-invoke-with-check) Fiddler.frmViewer:.ctor ()
  at Fiddler.frmViewer.RunMain (System.String[] arrArgs) [0x00153] in <bcca41f124814dd9a74204fd482fb6d7>:0 
  at Fiddler.frmViewer.Main (System.String[] arrArgs) [0x00016] in <bcca41f124814dd9a74204fd482fb6d7>:0 
➜  fiddler-linux 

Tsviatko Yovtchev
Telerik team
 answered on 27 Mar 2017
1 answer
99 views

Hello, I'd like to know if there's a way to show an error generated by the browser or at least be able to edit the errors provided by FiddlerCore to something a bit clearer for a not so technical end user.

I'm talking about errors generated in cases such as when there are issues resolving a DNS query: "[Fiddler] DNS Lookup for "DOMAIN.COM" failed. System.Net.Sockets.SocketException No such host is known"

Thank you.

Tsviatko Yovtchev
Telerik team
 answered on 27 Mar 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?