Telerik Forums
Fiddler Forum
1 answer
841 views
When using fiddlercore as web proxy in a WPF application and accessing web pages through a web browser control,  there are multiple socket exceptions thrown. When fiddler is turned off, we do not see these exceptions.

Fiddler start code snippet:
 const FiddlerCoreStartupFlags Flags = FiddlerCoreStartupFlags.Default;

            if (!FiddlerApplication.IsStarted())
            {
                FiddlerApplication.Startup(PortNumber, Flags);
            }

Fiddler shutdown snippet:
if (!FiddlerApplication.IsStarted())
            {
                return;
            }


            FiddlerApplication.BeforeRequest -= this.OnBeforeRequest;
            FiddlerApplication.ResponseHeadersAvailable -= this.OnResponseHeadersAvailable;

            FiddlerApplication.Shutdown();
            Thread.Sleep(TimeoutMilliseconds);

Below was the exception analysis using Windbg on a dump created:

Exception object: 0388db20
Exception type:   System.Net.Sockets.SocketException
Message:          An existing connection was forcibly closed by the remote host
InnerException:   <none>
StackTrace (generated):
    SP       IP       Function
    125EEA10 72C5D2F8 System_ni!System.Net.Sockets.Socket.Send(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)+0x6375e8
    125EEA30 0CEB335D UNKNOWN!Fiddler.BasePipe.Send(Byte[], Int32, Int32)+0x85
    125EEA50 0CEB51EA UNKNOWN!Fiddler.ServerChatter.LeakResponseBytes()+0xfa

StackTraceString: <none>
HResult: 80004005
*************
Exception object: 038ba308
Exception type:   System.Net.Sockets.SocketException
Message:          An existing connection was forcibly closed by the remote host
InnerException:   <none>
StackTrace (generated):
    SP       IP       Function
    0A7FF090 72C5D2F8 System_ni!System.Net.Sockets.Socket.Send(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)+0x6375e8
    0A7FF0B0 0CEB335D UNKNOWN!Fiddler.BasePipe.Send(Byte[], Int32, Int32)+0x85
    0A7FF0D0 0CEB51EA UNKNOWN!Fiddler.ServerChatter.LeakResponseBytes()+0xfa

StackTraceString: <none>
HResult: 80004005
*************
Exception object: 0390bf54
Exception type:   System.Net.Sockets.SocketException
Message:          An existing connection was forcibly closed by the remote host
InnerException:   <none>
StackTrace (generated):
    SP       IP       Function
    0674F2E4 72C5D2F8 System_ni!System.Net.Sockets.Socket.Send(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)+0x6375e8

StackTraceString: <none>
HResult: 80004005
*************
0:008>
Exception object: 03876124
Exception type:   System.Net.Sockets.SocketException
Message:          An existing connection was forcibly closed by the remote host
InnerException:   <none>
StackTrace (generated):
    SP       IP       Function
    0660F350 72C5D2F8 System_ni!System.Net.Sockets.Socket.Send(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)+0x6375e8
    0660F370 0CEB335D UNKNOWN!Fiddler.BasePipe.Send(Byte[], Int32, Int32)+0x85
    0660F390 0CEB51EA UNKNOWN!Fiddler.ServerChatter.LeakResponseBytes()+0xfa

StackTraceString: <none>
HResult: 80004005
*************
Exception object: 0388db20
Exception type:   System.Net.Sockets.SocketException
Message:          An existing connection was forcibly closed by the remote host
InnerException:   <none>
StackTrace (generated):
    SP       IP       Function
    125EEA10 72C5D2F8 System_ni!System.Net.Sockets.Socket.Send(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)+0x6375e8
    125EEA30 0CEB335D UNKNOWN!Fiddler.BasePipe.Send(Byte[], Int32, Int32)+0x85
    125EEA50 0CEB51EA UNKNOWN!Fiddler.ServerChatter.LeakResponseBytes()+0xfa

StackTraceString: <none>
HResult: 80004005
*************
Exception object: 038ba308
Exception type:   System.Net.Sockets.SocketException
Message:          An existing connection was forcibly closed by the remote host
InnerException:   <none>
StackTrace (generated):
    SP       IP       Function
    0A7FF090 72C5D2F8 System_ni!System.Net.Sockets.Socket.Send(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)+0x6375e8
    0A7FF0B0 0CEB335D UNKNOWN!Fiddler.BasePipe.Send(Byte[], Int32, Int32)+0x85
    0A7FF0D0 0CEB51EA UNKNOWN!Fiddler.ServerChatter.LeakResponseBytes()+0xfa

StackTraceString: <none>
HResult: 80004005
*************
Exception object: 0390bf54
Exception type:   System.Net.Sockets.SocketException
Message:          An existing connection was forcibly closed by the remote host
InnerException:   <none>
StackTrace (generated):
    SP       IP       Function
    0674F2E4 72C5D2F8 System_ni!System.Net.Sockets.Socket.Send(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)+0x6375e8

StackTraceString: <none>
HResult: 80004005

Eric Lawrence
Telerik team
 answered on 08 Jan 2015
1 answer
216 views
From http://www.enhanceie.com/Fiddler/help/httpsdecryption.asp, it says, 
if you've configured Fiddler to proxy traffic from a second computer or device...
but that URL (http://www.fiddler2.com/fiddler/help/hookup.asp#Q-NonWindows) is invalid, not actually linking to any specific article. 

Can we have the new url or a quick share of the steps please? 

Thanks
Antonio
Top achievements
Rank 1
 answered on 07 Jan 2015
3 answers
213 views
Rule Config

regex:(?insx)\/0Pl5sssO4/.+\.js$ #Versafe.js
C:\Users\chernyakov\Desktop\versafe\static.js

I would expect Autoresponder to respond with file contents. Instead, it rewrites my request 



GET http://xx.xx.43.176C:\Users\chernyakov\Desktop\script\static.js/ HTTP/1.1
Host: Xx.xx.43.176C:\Users\chernyakov\Desktop\script\static.js
Proxy-Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Accept: */*
Eric Lawrence
Telerik team
 answered on 06 Jan 2015
2 answers
979 views
So I want to modify a standard Http 200 response from a server, which contains headers and an image in the responsebody. I want to selectively replace that image (ideally from  a stored image file; but the actual image will change over time and/or I want to select different images based on logic). I want to retain the original headers from the server response, and replace the responsebody image. I would use the OnBeforeResponse event to trap the response. The images are standard files (image file only, no http headers).

I see I can load an entire response from a file with FildderScript, but I can't see how to load just the responsebody from a file (binary image jpg/or png or gif). I thought possibly I could populate an array from the image file, and then use ResponseBody:System.Byte[] call to attach the image (and fix up the headers associated with the size/content type etc).

I have searched far and wide but haven't found any related example FiddlerScript for this operation. Could you post a snippet along these lines?

john
Top achievements
Rank 1
 answered on 03 Jan 2015
11 answers
746 views

Yes I have tried resetting IE settings
Yes I have disabled and re-enabled IE
Yes I have tried the following steps:
1: Use Help > Troubleshoot Filters to make sure the traffic isn't getting hidden unexpectedly. --Nothing hidden
2: Look in the Log tab to see if there's a note about Chrome Group Policy hardcoding the proxy. --Recently set Chrome Policy to try and fix the issue. Not problematic
3: Update your question to mention whether other browsers' traffic is captured. --Nothing is captured except for Echo Service
4: Visit http://localhost.fiddler:8888/ in Chrome; What if anything do you see? --Echo Service
5: Visit http://127.0.0.1:8888/ in Chrome; What if anything do you see? --Echo Service
I have also tried to manually modify the registry settings. The result was Fiddler overriding them. I have tried process monitor, nothing is being captured at all.
After setting the Chrome Policy, it works, for Chrome anyways. I have disabled EVERY Chrome expansion. Nothing. I have also deleted Registry Keys, nothing.
I have crashed Windows trying to fix this, believe me I went in-depth. I have uninstalled the following as well to try:
1: Evolve VPN
2: Teamviewer VPN
3: Wireshark
4: WinPCap
5: Fiddler (Reinstalled)
6: CommView
With the exception of Fiddler, I have reinstalled nothing above. I do have Hamachi VPN installed, but I know it works for that. Note I am having the same exact issue on another laptop, meaning it is not entirely unique. The registry override ONLY occurs when refreshing Fiddler after registry change. I am ready to post any files I need.

Tyler
Top achievements
Rank 1
 answered on 02 Jan 2015
1 answer
732 views
Hello,
I am new to using Fiddler Web Debugger.  How do I measure performance of a website with the application?  Can you provide the basics? 

I see this in the right hand side when a page is loaded up.  In there anymore to performance tools that Fiddler Web Debugger has?

Requests started at:  36:56.8
Responses completed at:  36:58.2
Sequence (clock) duration:  00:01.4
Aggregate Session duration: 00:01.5
 TCP/IP Connect duration: 10ms
 
Eric Lawrence
Telerik team
 answered on 29 Dec 2014
0 answers
101 views
Rule Config

regex:(?insx)\/0Pl5sssO4/.+\.js$ #Versafe.js
C:\Users\chernyakov\Desktop\versafe\static.js

I would expect Autoresponder to respond with file contents. Instead, it rewrites my request 



GET http://xx.xx.43.176C:\Users\chernyakov\Desktop\script\static.js/ HTTP/1.1
Host: Xx.xx.43.176C:\Users\chernyakov\Desktop\script\static.js
Proxy-Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Accept: */*
Ilya
Top achievements
Rank 1
 asked on 25 Dec 2014
0 answers
103 views
Rule: regex:(?insx)\/0Pl5sssO4/.+\.js$ #script.js
and selected a file on a file system in the second combo-box 

I would expect that the AutoResponder would respond with the file contents, instead, it rewrites URLs to 

GET http://XX.XX.43.176C:\Users\chernyakov\Desktop\script\static.js/ HTTP/1.1
Host: XX.XX.43.176C:\Users\chernyakov\Desktop\script\static.js

All other headers are seem to be fine 

Is that a bug, or I am configuring it wrong ? 

Ilya
Top achievements
Rank 1
 asked on 25 Dec 2014
13 answers
341 views
I want use Fiddler Script and I have those packets with this host name :

wl.search.ar.ns.test.com

If I use oSession.HostnameIs how can I do ?

So ? 

if (oSession.HostnameIs("wl.search.ar.ns.test.com")) {
            oSession.hostname="199.156.34.12";
}

is it correct ?
Eric Lawrence
Telerik team
 answered on 24 Dec 2014
5 answers
157 views
Mostly I use Fiddler for creating Visual Studio web tests, by exporting to a ".webtest" file. As I record a set of steps I add comments about what is shown on the screen and what actions are being performed. Unfortunately the ".webtest" file omits many of the comments. While recording I just want to add a comment to the most recent session, I do not want to spend time choosing a session that should be written to the file.

How can I persuade Fiddler to write all of my comments to the ".webtest" file? I have looked at the code of some plugins and also (via "ilspy") at VSWebTestExport.dll but there is no obvious way of writing out the comments without making changes to file "FiddlerWebTest.cs".
Eric Lawrence
Telerik team
 answered on 19 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?