Telerik Forums
Fiddler Forum
1 answer
738 views

Hi,

Tried every filter, every Rule but this host allways appears making Fiddler unusable.

POST http://localhost:60110/request HTTP/1.1
Content-Type: application/json
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.8,pt-PT;q=0.5,pt;q=0.3
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)
Content-Length: 27
Host: localhost:60110
Connection: Keep-Alive
Pragma: no-cache

{"hello":{},"waitfor":3000}

 

 

 

Nick Iliev
Telerik team
 answered on 08 Nov 2021
0 answers
350 views

Hello, please tell me how to create a separate POST request using the C# language.
Initially, I tried to change the outgoing POST request from another application and resend it, but I get an error - "HTTP/1.1 504 Fiddler - Receive Failure".
And now you need to write a new request, specifying the headers and receiving a response.
And the whole question is how to do it all in C#?

I tried to use this code

 


    public static void OnBeforeResponse(Session oSession)
        {
           
        
            if (oSession.HTTPMethodIs("POST") ) 
            { 
    
    
                  String strBody =  oSession.GetRequestBodyAsString(); 
     
                  oSession.host="api.123.com";
      
                    string resultRequest = "request";
   
    
                    byte[] resulByte =   System.Text.Encoding.ASCII.GetBytes(resultRequest);
    
                
                    FiddlerApplication.oProxy.SendRequest (oSession.RequestHeaders, resulByte, null);            
    
               }

Max
Top achievements
Rank 1
Iron
 asked on 06 Nov 2021
1 answer
125 views
<p>Hi,</p><p>Any release schedule for the latest Telerik Fiddler Classic? Just curious, I love your products.</p><p>Thank you in advance.</p>
Nick Iliev
Telerik team
 answered on 03 Nov 2021
1 answer
202 views

Hi,

Any release schedule for the latest Telerik Fiddler Classic? Just curious, I love your products.

Thank you in advance.

Nick Iliev
Telerik team
 answered on 03 Nov 2021
1 answer
1.4K+ views
I have some issues on fiddler everywhere and I want to uninstall it from my device (OS ubuntu 20.04)
Nick Iliev
Telerik team
 answered on 02 Nov 2021
1 answer
1.2K+ views

hi everyone, sorry for my English)))

 

I have been trying to solve my problem for a long time, but unfortunately so far without success ((((
I have a POST request of a certain type, I need to change it and send it to another address, and the original request should go further to its address. I'm trying to work with the exchange. More to the point, I have a request like this :

 

I need to send this request after the original one

https://fapi/binance.com/fapi/v1/order?symbol=KEEPUSDT&side=BUY&type=MARKET&quantity=100&timeInForce=GTC&recvWindow=5000&timestamp=1591702613943&signature= 3c661234138461fcc7a7d8746c6558c9842d4e10870d2ecbedf7777cad694af9
    

 

In addition, the public API is passed in the header

I tried to do all this work in the onBeforeRequest method

 

 static function OnBeforeRequest(oSession: Session) {
       
		
	if (oSession.RequestMethod == "POST" &&  oSession.uriContains("order") ) {
       
         oSession.utilDecodeResponse()
        var strBody=oSession.GetRequestBodyAsString();
 
    
           // timestamp, time ms
            
            var timestampSTART= oSession.url.IndexOf("timestamp=") + 10; 
            
            var timestampEND= oSession.url.IndexOf("&", timestampSTART);   
           
            var timestamp = oSession.url.Substring(timestampSTART, 13);
            
           
            // SYMBOL
            
            var symbolStart = oSession.url.IndexOf("symbol=")+7;
           
            var symbolend = oSession.url.IndexOf("BTC", symbolStart)+3;
       
            var symbol = oSession.url.Substring(symbolStart, symbolend-symbolStart);
            
            
           //  Signature (timestamp+SecretAPIKey=Hmac Sha256)   theoretically, it can be taken from the original request, but it is more reliable to make your own 
           var signStart = oSession.url.IndexOf("signature=")+10;
                         
           var sign = oSession.url.Substring(signStart);
            
           
            //PRICE
            
         var PriceStart = oSession.url.IndexOf("price=")+6;
         var PriceEND = oSession.url.IndexOf("&", PriceStart);
         var priceStr = oSession.url.Substring(PriceStart, PriceEND-PriceStart);
         var price = parseFloat(priceStr);
            
                                    
            // Quantity
            
            var quantity = 50/ price*63000;
      
            var apiBIN =  "https://fapi.binance.com/fapi/v1/order?" ;
          
           
         //    var result = apiBIN+"symbol="+symbol+"&side=BUY&type=MARKET&quantity="+ quantity+"&timeInForce=GTC&recvWindow=5000&timestamp="+timestamp+"&signature="+sign;
                
         //    oSession.utilSetRequestBody(result)
      
         //   FiddlerApplication.oProxy.SendRequest(oSession.RequestHeaders, oSession.requestBodyBytes, null);
                
         

I have selected the necessary parameters from the request, but I do not understand how to send it in any way, and I also lose the header with the API key. 
Separately, I want to note the "Signature" parameter, which is created using the Hmac Sha256 algorithm from the secret API key and time, which I also can't figure out how to describe it in the code.

I would be very grateful for any help, with the possibility of some payment for substantial help.

Max
Top achievements
Rank 1
Iron
 updated answer on 31 Oct 2021
0 answers
233 views
I have a request and have a SecretApiKey, how do I sign the request body using System.Security.Cryptography.HMACSHA256() whose key to the requests was SecretApiKey?
Max
Top achievements
Rank 1
Iron
 asked on 29 Oct 2021
1 answer
554 views

According to Telerik docs, localhost should be automatically captured when capturing is enabled in Firefox and FiddlerHook is installed.

Even though this has been working successfully on my desktop for several years, it has stopped working after the latest Firefox update (to v. 93.0 (64-bit) even though FiddlerHook is still present within Firefox. Note that all non-localhost traffic is still captured as expected. Localhost will be captured if the FiddlerFox extension is installed and enabled, but this requires manually toggling a switch control in FiddlerFox while using Fiddler.

Is this functionality now broken, and, if so, can it be fixed?

 

Thank you very much,

Martyn

Nick Iliev
Telerik team
 answered on 27 Oct 2021
1 answer
4.8K+ views

I am using Fiddler to capture android app traffic by following this tutorial here: https://www.telerik.com/blogs/how-to-capture-android-traffic-with-fiddler

I've successfully set up everything and I'm able to capture traffic just that I'm also getting traffic from my windows machine where I have fiddler installed and acting as a proxy.

  1. How can I config fiddler to only show captured traffic just from my android device?
  2. Moreover, if I've installed the certificate and configured the proxy on 2 different android devices how can I differentiate between the two? Right now the only solution is to turn wifi off on one of the devices.
  3. Is there a way I can see somewhere in the left traffic list stream window or the right Inspectors window and tabs what's the ip of the device that the traffic data belongs to? For example, my android device 1 has 192.168.0.10 and android device 2 has 192.168.0.20. I would like to see somewhere in the request and/or response this IP for the same reason described above - to be able to differentiate traffic captured from one source from the other.
Nick Iliev
Telerik team
 answered on 25 Oct 2021
0 answers
245 views

for a year i was able to see it in english but now when i use Fiddler in the Raw body it shows DCAoUTRTRZPkYOPP^<[YSRTKoTPB UEAS]\mERDX@F h;NE^Y>RYD LW[hD@k ]WADFSVD:QXTJ\SYR@

 

How do i make it show english again? When i use Cheat Engine im able to see what i would usually see, if i tick UTF-16 (before it broke i was able to view it without ticking UTF-16, but not anymore ). Usually it would be perfect english in the JSON but now the JSON doesn't even show anything.

albino
Top achievements
Rank 1
 updated question on 15 Oct 2021
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?