Telerik Forums
Fiddler Forum
7 answers
661 views
must be a stupid question:

i have captured a set of web traffic, highlighted them and 'replay' and seems like the traffic is generated immediately and sent to the server. i need to run the traffic one line at a time (sequentially). the next line should only start after the response from the previous line is returned. how do i achieve that effect? 

Thanks in advance.
Eric Lawrence
Telerik team
 answered on 01 Aug 2014
2 answers
262 views

sorry ,i am chinese.English is very poor .

i see fiddler web debug have a function named "HOSTS",it in catalog "tools->HOSTS",

now i use fiddlercore,but i donot find the HOSTS function .

i found  a class named HostList,but I don't know how to use it.

i want   modify request host's ip address.

for example :
  private void onBeforeRequest(Fiddler.Session oSession)
        {
            //now oSession.host = "5158.s20.javaidc.com";ip is 118.26.135.190,i want modiyf to 127.0.0.1 ,but the request head remain the same

           // under code is not working, I don't know whether or not write code in beforeRequest or other place
           oSession.m_hostIP = "127.0.0.1";

          //under code is modefiy request head
          //oSession.host = "127.0.0.1";

            
        }



thank you make the fiddler software.  Help me to solve a lot of trouble.

poko
Top achievements
Rank 1
 answered on 01 Aug 2014
1 answer
348 views

Hi.
I have some problems.

I need to intercept encrypted message.
Content type of SOAP message with attachment is multipart/related. (application/soap+xml, application/octet-stream)
Character set of message of application/soap+xml is utf-8, but attachment with octet-stream is not encoded.
On fiddler, message is cracked like attached file (part of Raw tab message).

I need to save this message. (with attachment and MIME Header Message)
Can I save the raw message to file?
I think copy-paste will make a encoding problem.

Sorry for my weak English.
Thank you.


Eric Lawrence
Telerik team
 answered on 31 Jul 2014
1 answer
1.1K+ views
Hi,

I am trying to test a ASP.NET Webapi method using fiddler. I have a method which accepts XML in the form of a string parameter. I know its not a good design, but I am in the process of porting a legacy WCF implementation to Webapi and initially I have to keep the method signature as is and then eventually I can make it to follow a better design. Anyway, so here is my method signature.

[HttpPost]
public int CreatePGT([FromBody] string pgtXml, [FromUri] string transactionId)
{
     return 10; // Some processing happens and actual implementation returns an id
}

How can I compose a request using following URL http://localhost:62050/api/proposal/CreatePGT?transactionId=ttt and post the following xml string in request body
<?xml version="1.0" encoding="UTF-8" ?><PGT  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="pgt.xsd">
<title>Test Proposal</title></PGT> 


Eric Lawrence
Telerik team
 answered on 30 Jul 2014
1 answer
1.4K+ views
How do i specify which DNS server FiddlerCore should use

I want to override the use of the system DNS Server, and not by changing the system DNS Server, but changing the DNS server programmatically at runtime during BeforeResponse, or less preferable, before FiddlerApplication.Startup.

/Thomas

Eric Lawrence
Telerik team
 answered on 30 Jul 2014
5 answers
756 views
I need some advice on how to go about doing this.

I have an IIS server that has two asp mvc website applications (desktop and mobile). There is also a web service \ rest api that this website application exposes.
This web application also is a consumer of an external rest api.

As long as this iis server is running, I would like to capture all rest api requests\responses that are initiated by our web application to an outside rest api. The idea being that I would like to dump all these requests\responses somewhere(ideally as csv format so that I can import them into a database) and do some data analysis.

The data analysis is to
1. I want to make sure every rest api request has certain parameters (i.e not blank, 6 digits, etc...). 
2. make sure there is a 1 to 1 correspondence for a certain # of rows in a table in our application db with certain calls to the rest api.
etc....

I'm thinking of running fiddler as a service so that captures are always occurring using this reference (http://fiddler.wikidot.com/runasservice)
then use this reference (http://stackoverflow.com/questions/18066687/dumping-fiddler-sessions-automatically) to auto dump all web requests and responses into csv file. I can get by in c#.

Is there a better way to do what I want to achieve?






John
Top achievements
Rank 1
 answered on 29 Jul 2014
6 answers
416 views
I have to use FiddlerCore in a 64 bit application. But the actual dll file is compiled for 32 bit architecture. Do you deliver 64 bit dll for FiddlerCore?
Erdem
Top achievements
Rank 1
 answered on 28 Jul 2014
1 answer
577 views
I'm coding a multithreaded web-crawler that performs a lot of concurrent httpwebrequests every second using hundreds of threads, the application works great but sometimes(randomly) one of the webrequests hangs on the getResponseStream() completely ignoring the timeout(this happen when I perform hundreds of requests concurrently) making the crawling process never end, the strange thing is that with fiddler this never happen and the application never hang, it is really hard to debug because it happens randomly.

I've tried to set

Keep-Alive = false

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;

but I still get the strange behavior, any ideas?

Thanks

HttpWebRequest code:

     
public static string RequestHttp(string url, string referer, ref CookieContainer cookieContainer_0, IWebProxy proxy)
       {
           string str = string.Empty;
           HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
           request.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip;
           request.UserAgent = randomuseragent();
           request.ContentType = "application/x-www-form-urlencoded";
           request.Accept = "*/*";
           request.CookieContainer = cookieContainer_0;
           request.Proxy = proxy;
           request.Timeout = 15000;
           request.Referer = referer;
           using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
           {
               using (Stream responseStream = response.GetResponseStream())
               {
                   List<byte> list = new List<byte>();
                   byte[] buffer = new byte[0x400];
                   int count = responseStream.Read(buffer, 0, buffer.Length);
                   while (count != 0)
                   {
                       list.AddRange(buffer.ToList<byte>().GetRange(0, count));
                       if (list.Count >= 0x100000)
                       {
                           break;
                       }
                       count = 0;
                       try
                       {
              HERE IT HANGS SOMETIMES --->             count = responseStream.Read(buffer, 0, buffer.Length);
                           continue;
                       }
                       catch
                       {
                           continue;
                       }
                   }
 
                   int num2 = 0x200 * 0x400;
                   if (list.Count >= num2)
                   {
                       list.RemoveRange((num2 * 3) / 10, list.Count - num2);
                   }
                   byte[] bytes = list.ToArray();
                   str = Encoding.Default.GetString(bytes);
                   Encoding encoding = Encoding.Default;
                   if (str.ToLower().IndexOf("charset=") > 0)
                   {
                       encoding = GetEncoding(str);
                   }
                   else
                   {
                       try
                       {
                           encoding = Encoding.GetEncoding(response.CharacterSet);
                       }
                       catch
                       {
                       }
                   }
                   str = encoding.GetString(bytes);
 
               }
           }
           return str.Trim();
       }
Eric Lawrence
Telerik team
 answered on 25 Jul 2014
2 answers
301 views
I've just installed Fiddler2 on a Windows 7 Enterprise system. On our network is running an application server providing REST methods.
I'm connecting to that server with a Java client application using RestEasy. This connects fine and sends an HTTP REST request.

I have set the proxy settings in the application's VM settings (-DproxySet=true -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888) but when I attempt the connection it seems to go right through to the server and is not intercepted by Fiddler.

I even tried setting the proxy port to a bad value, but the request still goes through, so I'm thinking it is a RestEasy issue.
I have another Java client application which also makes a REST method call, but doesn't use RestEasy, and it is intercepted by Fiddler just fine.

Do you know what I need to do to get my Java RestEasy requests to be intercepted by Fiddler2?

Thanks,
Mark
Top achievements
Rank 1
 answered on 24 Jul 2014
1 answer
253 views
My program use FiddlerCore and set Decrypt SSL by default to capture url of session 
When I don't have fiddler installed in my PC, everything works well.  When I install fiddler and uncheck "Decrypt Https Traffic", FiddlerCore  in my program can not capture url of session,  but if I check "Decrypt Https Traffic" in fiddler, my program works well again.
So obviously,  the "Decrypt Https Traffic" checkbox impact/override  FiddlerCore option in my program. Why ? Is there any way to avoid that ?
Thanks.

Best Regards,
Steven
Eric Lawrence
Telerik team
 answered on 21 Jul 2014
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?