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
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
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]);
}
}
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?
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?
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 :(
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
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.