No websockets by using Fiddler API

8 posts, 0 answers
  1. zellcomp
    zellcomp avatar
    6 posts
    Member since:
    Nov 2019

    Posted 09 Dec 2019 Link to this post

    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?
  2. zellcomp
    zellcomp avatar
    6 posts
    Member since:
    Nov 2019

    Posted 09 Dec 2019 Link to this post

    I use FiddlerCoreAPIFree_4_6_20191_7809.
  3. Eric R | Senior Technical Support Engineer
    Admin
    Eric R | Senior Technical Support Engineer avatar
    419 posts

    Posted 11 Dec 2019 Link to this post

    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
  4. zellcomp
    zellcomp avatar
    6 posts
    Member since:
    Nov 2019

    Posted 11 Dec 2019 Link to this post

    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. 

     

  5. Eric R | Senior Technical Support Engineer
    Admin
    Eric R | Senior Technical Support Engineer avatar
    419 posts

    Posted 12 Dec 2019 Link to this post

    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
  6. zellcomp
    zellcomp avatar
    6 posts
    Member since:
    Nov 2019

    Posted 15 Dec 2019 in reply to Eric R | Senior Technical Support Engineer Link to this post

    Could you show an example?

     

    -- Thanks

  7. zellcomp
    zellcomp avatar
    6 posts
    Member since:
    Nov 2019

    Posted 15 Dec 2019 in reply to Eric R | Senior Technical Support Engineer Link to this post

    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)

  8. zellcomp
    zellcomp avatar
    6 posts
    Member since:
    Nov 2019

    Posted 16 Dec 2019 in reply to Eric R | Senior Technical Support Engineer Link to this post

    No need examples anymore. I figure it out how to get desired info. Thanks a lot for the help.
Back to Top