zoukankan      html  css  js  c++  java
  • FiddlerCore注意事项

    Fiddlercore 使用说明
    Fiddlercore不保留session序列,因此要自己保存。并且要注意网页session不会被垃圾回收,因为oAllSessions List保持活动引用,因此要时常trim。另一种选择,若仅仅关系请求url或者请求头,只保存一个list<>而不是存储对全session的一个活动的引用

    // Inside your main object, create a list to hold the sessions
    // This generic list type requires your source file includes #using System.Collections.Generic.
    List<Fiddler.Session> oAllSessions = new List<Fiddler.Session>();
    
    // Inside your attached event handlers, add the session to the list:
    Fiddler.FiddlerApplication.BeforeRequest += delegate(Fiddler.Session oS) {
    Monitor.Enter(oAllSessions);
    oAllSessions.Add(oS);
    Monitor.Exit(oAllSessions);
    };
    
    
    // Call Startup to tell FiddlerCore to begin listening on the specified port,
    // and optionally register as the system proxy and optionally decrypt HTTPS traffic.
    Fiddler.FiddlerApplication.Startup(8877, true, true);
    
    // Call Shutdown to tell FiddlerCore to stop listening on the specified port, and 
    // unregister as the system proxy if attached.
    Fiddler.FiddlerApplication.Shutdown();

    exe.config中添加
    <legacyUnhandledExceptionPolicy enabled="1"/>
    能使程序回到net1.0或1.1的线程异常的状态

  • 相关阅读:
    VC窗口类的销毁-是否需要delete
    ScrollView在调试状态一点击就挂的原因(OnMouseActivate)
    TextOut与DrawText的区别
    NOIP2010 引水入城
    欧拉回路
    BZOJ 1202: [HNOI2005]狡猾的商人
    codevs 2491 玉蟾宫
    BZOJ 1059: [ZJOI2007]矩阵游戏
    BZOJ 1024: [SCOI2009]生日快乐
    ural 1297. Palindrome
  • 原文地址:https://www.cnblogs.com/dennysong/p/5671810.html
Copyright © 2011-2022 走看看