Telerik Forums
Fiddler Forum
0 answers
225 views

Hi all,

 

I'm trying to an auto responder for any url and contains two words in the body. I am using the following, but it never works :-(

URLWithBody:regex:.* regex:assignRequest.*127

Here i am expecting any body request containing assignRequest and 127 (order doesn't matter) to auto respond but it doesn't work I've also tried other combinations without success

it works if i just use one word, but not two.

Regards

Chris

Chris
Top achievements
Rank 1
 asked on 28 Jun 2017
0 answers
330 views

I know it uses Jscript.NET but is there some special context it runs within (and is documented somewhere) that would prevent me from instantiating a Form to input a string, select from a radio button group, etc? Or is a different file supposed to be edited?

When I try to add the following to CustomRules.js in the ScriptEditor, it says "ERROR LINE --> MyForm myform = new MyForm() - The list of attributes does not apply to the current context" when I save the script.

 

Here is the Form class I am trying to use to make a dialog:

import System.Windows.Forms;
import System.ComponentModel;
import System.Drawing;
 
class MyForm extends System.Windows.Forms.Form {  
    // declare variables
    private var label1: Label;
    private var textBox1: TextBox;
    private var button1: Button;
    private var panel1: Panel;
 
    // constructor
    function MyForm() {                        
        //SuspendLayout(); // suspend layout events
        // label, size, and center form
        Text= "Resize Me!";
        ClientSize= new System.Drawing.Size(300,300);
        StartPosition= System.Windows.Forms.FormStartPosition.CenterScreen;
 
        // create a label
        label1= new Label;      
        label1.Location= new Point(10,10);
        label1.Size= new System.Drawing.Size(80,20);
        label1.Name= "label1";
        label1.Text= "Label";
        label1.Anchor= AnchorStyles.Left;
                 
        // create a TextBox
        textBox1 = new TextBox;
        textBox1.Location= new Point(10,30);
        textBox1.Size = new System.Drawing.Size(80,20);
        textBox1.Name= "textBox1";
        textBox1.Text = "Hello World";
        textBox1.Anchor= AnchorStyles.Left;                           
 
        // create a Button
        button1= new Button;
        button1.Location= new Point(200,240);
        button1.Size= new System.Drawing.Size(80,20);
        button1.Name= "button1";
        button1.Text= "Button";
        button1.Anchor= AnchorStyles.Right | AnchorStyles.Bottom;
                                               
        // create a Panel
        panel1= new Panel;
        panel1.Location= new Point(0,0);
        panel1.Size= new System.Drawing.Size(300,300);
        panel1.Name= "panel1";
        // resize panel on resize form
        panel1.Anchor= AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
             
        // add controls to the panel
        panel1.Controls.Add(label1); 
        panel1.Controls.Add(textBox1);
        panel1.Controls.Add(button1);
 
        // add panel to form
        this.Controls.Add(panel1);
 
        //ResumeLayout(); // resume layout events
    } // end_constructor
} // end_class
 
 
class Handlers {
 
    ...
 
    static function BeforeTestList(arrSess: Session[]): boolean
    {
        MyForm myform = new MyForm();
        myform.ShowDialog();
         
        return true; // Test should proceed; return false to cancel
    }
}
Ed
Top achievements
Rank 1
 asked on 27 Jun 2017
0 answers
384 views

 

Using the Python requests library, I can do something like this:

<p>session = requests.Session()</p><p>session.post("https://testurl", ..., verify=false)</p>

 

and Fiddler will detect the web request just fine. However, if I use a prepared request like so:

<p>session = requests.Session()</p><p>request = requests.Request("POST", "https://testurl", ...)</p><p>session.prepare_request(request)</p><p>session.send(prepared, verify=false)</p><p></p>

 

the sent web request does not show up in the session list in Fiddler. I've confirmed that the request is getting sent and receiving a response through the Python script, but for some reason it's not showing up in Fiddler. Any ideas? I don't have any filters or rules enabled.

Drew
Top achievements
Rank 1
 asked on 27 Jun 2017
0 answers
103 views

I know Fiddler (which is awesome by the way) can server a certificate upon request from the server; however, I'm trying to debug what type of filters the 3rd party server (we don't have access to it) is trying to request.

In the connect request/response I don't ever see an actual CertificateRequest although I some information about the connect, and that Fiddler handled some items in that TLS handshake, just not about a certificate request from the server for the client...

Is this something just not possible with Fiddler and I need to wireshark this?

Cheers!

WTHNoSpam
Top achievements
Rank 1
 asked on 27 Jun 2017
10 answers
293 views

I'm wondering when FiddlerHook will be released as a signed add-on for Firefox.

Mozilla has announced that in the near future, unsigned add-ons will no longer be alllowed to run.

 

 

 

JF
Top achievements
Rank 1
 answered on 21 Jun 2017
0 answers
229 views
Auto responder can match the request, but not responses with the selected content, just passthrough.
Top achievements
Rank 1
 asked on 21 Jun 2017
1 answer
274 views

I have been unable to set fiddler as the system proxy ever since updating to the Windows 10 "creators update"(Version 1703, build 15063.332). All fields on the LAN settings window are blank, and it won't let me update them. I enter "127.0.0.1" and "8888" and after the advanced settings window closes, clicking "ok" does NOTHING!!! Reinstalling fiddler ALSO does NOTHING!!!!

After one cumulative update of Windows, the problem got worse: 

" 22:17:47:1692 ! WARNING: Port 8888 is already in use (for at least some IP addresses) by 'mobileservice:13340' "

At startup, a dialog asks to reassign fiddler to a different random port. If I decline, the attached error dialog shows up.

Any suggestions?

Chris
Top achievements
Rank 1
 answered on 20 Jun 2017
7 answers
1.1K+ views
When I am trying to capture traffic of my website that deployed over HTTPS protocol along with proxy configuration in my local network, system throw following error. I have tried all possible setting in Tools -> Fiddler Option -> HTTPS and Connection but nothing work:

[Fiddler] The connection to the upstream proxy/gateway failed. Closing Fiddler, changing your system proxy settings, and restarting Fiddler may help. 
System.Exception Upstream Gateway refused requested CONNECT.


Please help me in fixing this problem, as I need to record some performance matrix for my website.
Tsviatko Yovtchev
Telerik team
 answered on 20 Jun 2017
1 answer
150 views

New to fiddler. I am trying to do a REST API curl request but getting a red 502 response.

Here is the curl request:

 

curl -X GET https://sandbox.forte.net/api/v3/organizations/org_333251/locations/loc_191620/customers/
-H "Content-Type: application/json"
-H "X-Forte-Auth-Organization-Id: org_333251" 
-H "Authorization: Basic Mjk3NjMwMGJiNjlmMDhiMmRmZTU3NzU0ZDkyMWI4Y2Q6NmU4N2QwZjUwMmE4ZGE5M"
-H "Accept: application/json"
-H "Cache-Control: no-cache"

 

It is a sandbox account so no problem if you want to play around with it.

All the credentials are good, and it works in Postman, but for the life of me I can't get it to work in Fiddler :(

 

What am I missing?

James
Top achievements
Rank 1
 answered on 20 Jun 2017
2 answers
182 views

 

Dear Guys,
For some weeks now, I often have severe memory problems with Fiddler. Fiddler takes all memory, then all other applications need to access the pagefile and quickly the system becomes unusable. This happens every two days or once a week or so. It happens today and it happened two days ago.
* I don't stream any audio or video.
*  "Keep only" is set to 100.
* To me, it seems this is somehow correlated to Windows downloading some update packages. Not sure, though. 
Fiddler Version:
v4.6.20171.7553
Built: Fr, 27. Jan 2017
64-bit AMD64, VM: 49,0mb, WS: 84,0mb
.NET 4.6.2 WinNT 10.0.15063.0
If client aborts while streaming, finish if session visible

!memory in QuickExec Box gives:
11:57:33:4986 Fiddler.Network.ProtocolViolation - [#278] The Request's Host header did not match the URL's host component.
URL Host: a-0020.a-msedge.net
Header Host: officecdn.microsoft.com
11:57:33:6278 Fiddler.Network.ProtocolViolation - [#279] The Request's Host header did not match the URL's host component.
URL Host: a-0020.a-msedge.net
Header Host: officecdn.microsoft.com
11:57:33:7550 Fiddler.Network.ProtocolViolation - [#280] The Request's Host header did not match the URL's host component.
URL Host: e1723.dscd.akamaiedge.net
Header Host: officecdn.microsoft.com
11:57:33:9009 Fiddler.Network.ProtocolViolation - [#281] The Request's Host header did not match the URL's host component.
URL Host: e1723.dscd.akamaiedge.net
Header Host: officecdn.microsoft.com
12:09:15:5155 fiddler.network.readresponse.failure> Session #346 raised exception System.Net.Sockets.SocketException Eine bestehende Verbindung wurde softwaregesteuert
durch den Hostcomputer abgebrochen
12:09:15:5155 fiddler.network.readresponse.failure> Session #347 raised exception System.Net.Sockets.SocketException Eine bestehende Verbindung wurde softwaregesteuert
durch den Hostcomputer abgebrochen
12:13:38:7092 fiddler.network.readresponse.failure> Session #352 raised exception System.Net.Sockets.SocketException Eine bestehende Verbindung wurde softwaregesteuert
durch den Hostcomputer abgebrochen
12:13:38:7092 fiddler.network.readresponse.failure> Session #353 raised exception System.Net.Sockets.SocketException Eine bestehende Verbindung wurde softwaregesteuert
durch den Hostcomputer abgebrochen
12:14:03:7589 MEMORY ANALYSIS
-= Fiddler Memory Usage =-
Process Bitness: 64
OS Version: 10.0.15063.0
CLR Version: 4.0.30319.42000
LOH Compact: Supported
The Web Sessions list contains 101 Sessions, accounting for:
 137.036 bytes of headers
 3.152.234 bytes of bodies
 0 bytes of WebSocket messages
-PRE-GC-
 GCAllocated: 13.348.669.776
 VirtualMemory: 14.230.929.408
 WorkingSet: 2.936.229.888
-POST-GC-
 GCAllocated: 9.598.081.592
 VirtualMemory: 9.817.096.192
 WorkingSet: 1.418.104.832
-= System Memory Info=-
 Total Physical: 8.501.952.512
 Available: 3.918.082.048
 Total Virtual: 140.737.488.224.256
 Available: 140.690.886.983.680
 Total PageFile: 21.374.271.488
 Available: 7.160.733.696
 
 
After some seconds, all the freed memory is taken up again. !memory gives then:
12:15:45:7548 MEMORY ANALYSIS
-= Fiddler Memory Usage =-
Process Bitness: 64
OS Version: 10.0.15063.0
CLR Version: 4.0.30319.42000
LOH Compact: Supported
The Web Sessions list contains 101 Sessions, accounting for:
 137.036 bytes of headers
 3.152.234 bytes of bodies
 0 bytes of WebSocket messages
-PRE-GC-
 GCAllocated: 12.447.535.864
 VirtualMemory: 12.671.918.080
 WorkingSet: 5.590.409.216
-POST-GC-
 GCAllocated: 10.362.271.696
 VirtualMemory: 10.570.149.888
 WorkingSet: 3.508.121.600
-= System Memory Info=-
 Total Physical: 8.501.952.512
 Available: 3.343.585.280
 Total Virtual: 140.737.488.224.256
 Available: 140.690.219.040.768
 Total PageFile: 20.293.812.224
 Available: 5.401.878.528
 
Four minutes later:
12:19:17:0911 MEMORY ANALYSIS
-= Fiddler Memory Usage =-
Process Bitness: 64
OS Version: 10.0.15063.0
CLR Version: 4.0.30319.42000
LOH Compact: Supported
The Web Sessions list contains 101 Sessions, accounting for:
 137.036 bytes of headers
 3.152.234 bytes of bodies
 0 bytes of WebSocket messages
-PRE-GC-
 GCAllocated: 13.218.860.992
 VirtualMemory: 13.464.555.520
 WorkingSet: 1.922.998.272
-POST-GC-
 GCAllocated: 10.384.166.112
 VirtualMemory: 10.614.800.384
 WorkingSet: 392.175.616
-= System Memory Info=-
 Total Physical: 8.501.952.512
 Available: 2.732.867.584
 Total Virtual: 140.737.488.224.256
 Available: 140.690.356.396.032
 Total PageFile: 21.373.087.744
 Available: 6.433.079.296 
 
12:25:04:8333 MEMORY ANALYSIS
-= Fiddler Memory Usage =-
Process Bitness: 64
OS Version: 10.0.15063.0
CLR Version: 4.0.30319.42000
LOH Compact: Supported
The Web Sessions list contains 101 Sessions, accounting for:
 137.036 bytes of headers
 3.152.234 bytes of bodies
 0 bytes of WebSocket messages
-PRE-GC-
 GCAllocated: 12.335.226.200
 VirtualMemory: 14.014.726.144
 WorkingSet: 2.947.018.752
-POST-GC-
 GCAllocated: 9.590.238.304
 VirtualMemory: 9.818.116.096
 WorkingSet: 1.271.791.616
-= System Memory Info=-
 Total Physical: 8.501.952.512
 Available: 4.442.357.760
 Total Virtual: 140.737.488.224.256
 Available: 140.691.292.782.592
 Total PageFile: 24.630.853.632
 Available: 10.420.068.352
 
 
 Process Top List at 12:24 o'clock: 774.png

Andreas
Top achievements
Rank 1
 answered on 20 Jun 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?