Check network connectivity in fiddlerscript

3 posts, 0 answers
  1. Keren
    Keren avatar
    1 posts
    Member since:
    Sep 2019

    Posted 01 Sep Link to this post

    There are lots of indicators for online/offline status in UI and log. But how do we check this in fiddlerscript (c#)? (The application does not call any of OnPeekAtResponseHeaders(), OnBeforeResponse() and OnReturningError() when I am offline)
  2. Eric R | Technical Support Engineer
    Admin
    Eric R | Technical Support Engineer avatar
    230 posts

    Posted 04 Sep Link to this post

    Hi Keren,

    At this time, the Online Status indicators are for informational purposes only and there is no way to access this information using FiddlerScript. However, I have created a Feedback Request and increased the priority. Additionally, I recommend casting a vote following it there. 

    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
  3. Eric R | Technical Support Engineer
    Admin
    Eric R | Technical Support Engineer avatar
    230 posts

    Posted 10 Sep Link to this post

    Hi Keren,

    Per the suggestion in the Feedback Request, try importing the System.Net.NetworkInformation namespace and use the following code snippet to check if the network is available. 

     

    import System.Net.NetworkInformation; // Place at the top of the FiddlerScript file, i.e. CustomRules.js

     

    NetworkInterface.GetIsNetworkAvailable() // Use this to check if the Network is available anywhere in the script.

     

    Please give this a try and let me know the results. Thank you and 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
Back to Top