This is a migrated thread and some comments may be shown as answers.

No websockets by using Fiddler API

7 Answers 238 Views
FiddlerCore
This is a migrated thread and some comments may be shown as answers.
zellcomp
Top achievements
Rank 1
zellcomp asked on 09 Dec 2019, 12:04 PM
I'am trying to catch all traffic by using Fiddler API, but I get only  the 200 code result. I'm interesting in 101 code and websockets info, but I can't get them via API. When I use the UI Fiddler I can see websockets. Have any ideas why it happens?

7 Answers, 1 is accepted

Sort by
0
zellcomp
Top achievements
Rank 1
answered on 09 Dec 2019, 12:23 PM
I use FiddlerCoreAPIFree_4_6_20191_7809.
0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 11 Dec 2019, 05:48 PM

Hi Zellcomp,

Thank you for using the Fiddler Forums. My first thought is that FiddlerCore is misconfigured. Although, in order to troubleshoot this, I'll need more information. Can you provide the following items?

1. Source code for the FiddlerCore Configuration, the System proxy Registration and any Capture Events?

2. Are the requests using HTTPS/SSL? If so, which Certificate is being used?

Once I have the above information, I can try to replicate the issue.

For additional reference, see the Fiddler API documentation.

In the meantime, please let me know if you need any additional information. I look forward to your reply.

Regards,


Eric R | Technical Support Engineer
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
zellcomp
Top achievements
Rank 1
answered on 11 Dec 2019, 06:17 PM

Eric hi,

I finally found out how to see the websockets. But I need to know it's size and a can't get it out. Could you help me with it? I trying to use oSession.TunnelIngressByteCount in BeforeResponse and all I see is 0. I have no idea how to receive value of this field for the desired session some time later when the value grows and become something different from 0. 

 

0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 12 Dec 2019, 08:27 PM

Hi Zellcomp,

I am glad to hear that you have resolved the issue. For the WebSocket size, use the IngressByteCount on the WebSocket object to return the byte count. The TunnelIngressByteCount is for the Session object which would return 0 for a WebSocket message.

I hope this helps. Please let me know if you need any additional information. Thank you.

Regards,


Eric R | Technical Support Engineer
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
zellcomp
Top achievements
Rank 1
answered on 15 Dec 2019, 11:53 AM

Could you show an example?

 

-- Thanks

0
zellcomp
Top achievements
Rank 1
answered on 15 Dec 2019, 03:32 PM

I've tried oSession.__oTunnel.EgressByteCount but failed.

 

AttributeError : 'NoneType' object has no attribute 'EgressByteCount'

Type: Python.Runtime.PythonException
Source: Python.Runtime
['  File "pyfiddler55.py", line 55, in BeforeResponse\n    print("%i TunnelIngre
ssByteCount %i" % (procId, oSession.__oTunnel.EgressByteCount))\n']   в Python.R
untime.Dispatcher.Dispatch(ArrayList args)
   в __Fiddler_SessionStateHandlerDispatcher.Invoke(Session )
   в Fiddler.FiddlerApplication.DoBeforeResponse(Session oSession)
   в Fiddler.Session.RunStateMachine()
   в Fiddler.Session.<RunStateMachine>b__209_0(IAsyncResult unused)
   в Fiddler.ServerChatter._smNotifyCSMDone()
   в Fiddler.ServerChatter.RunConnectionStateMachine()
   в Fiddler.ServerChatter.BeginAsyncConnectToHost(AsyncCallback OnDone)
   в Fiddler.Session.RunStateMachine()
   в Fiddler.Session.InnerExecute()
   в Fiddler.Session.Execute(Object objThreadState)

0
zellcomp
Top achievements
Rank 1
answered on 16 Dec 2019, 11:32 AM
No need examples anymore. I figure it out how to get desired info. Thanks a lot for the help.
Tags
FiddlerCore
Asked by
zellcomp
Top achievements
Rank 1
Answers by
zellcomp
Top achievements
Rank 1
Eric R | Senior Technical Support Engineer
Telerik team
Share this question
or