博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Fiddlercore Demo - Fiddler
阅读量:7206 次
发布时间:2019-06-29

本文共 1832 字,大约阅读时间需要 6 分钟。

public partial class Form1 : Form{    public Form1()    {        InitializeComponent();    }    private void Form1_Load(object sender, EventArgs e)    {        Fiddler.FiddlerApplication.OnNotification += FiddlerApplication_OnNotification;        Fiddler.FiddlerApplication.Log.OnLogString += Log_OnLogString;        Fiddler.FiddlerApplication.BeforeRequest += FiddlerApplication_BeforeRequest;        Fiddler.FiddlerApplication.BeforeResponse += FiddlerApplication_BeforeResponse;        Fiddler.FiddlerApplication.AfterSessionComplete += FiddlerApplication_AfterSessionComplete;        Fiddler.CONFIG.IgnoreServerCertErrors = false;    }     void FiddlerApplication_AfterSessionComplete(Fiddler.Session oSession)    {        Console.WriteLine("Finished session:t" + oSession.fullUrl);    }     void FiddlerApplication_BeforeResponse(Fiddler.Session oSession)    {        Debug.WriteLine("{0}:HTTP {1} for {2}", oSession.id, oSession.responseCode, oSession.fullUrl);    }     void FiddlerApplication_BeforeRequest(Fiddler.Session oSession)    {        Debug.WriteLine("Before request for:t" + oSession.fullUrl);        oSession.bBufferResponse = true;    }     void FiddlerApplication_OnNotification(object sender, Fiddler.NotificationEventArgs e)    {        Debug.WriteLine("** NotifyUser: " + e.NotifyString);    }    void Log_OnLogString(object sender, Fiddler.LogEventArgs e)    {        Debug.WriteLine("** LogString: " + e.LogString);    }     ///     /// キャプチャ開始    ///     ///     ///     private void button1_Click(object sender, EventArgs e)    {        Fiddler.FiddlerApplication.Startup(8877, true, true);     }     ///     /// キャプチャ終了    ///     ///     ///     private void button2_Click(object sender, EventArgs e)    {        Debug.WriteLine("Shutting down...");        Fiddler.FiddlerApplication.Shutdown();    }}

 

转载地址:http://qaoum.baihongyu.com/

你可能感兴趣的文章
4.安卓基础之Activity跳转动画
查看>>
【连载】Django入门到实战(一)
查看>>
分布式压测系列之Jmeter4.0
查看>>
PHP冒泡排序
查看>>
从java的NIO版hello world看java源码,我们能看到什么?
查看>>
Java™ 教程(控制流语句)
查看>>
【刷算法】LeetCode- 两数之和
查看>>
Python 中的 10 个常见安全漏洞,以及如何避免(上)
查看>>
GMTC 大前端时代前端监控的最佳实践
查看>>
类文件结构
查看>>
[Python教程] 一只乌龟其实也很酷 (1、动起来)
查看>>
手动实现bind函数(附MDN提供的Polyfill方案解析)
查看>>
八年磨一剑,阿里云ApsaraDB for HBase2.0正式上线
查看>>
HTTP/2 技术调研和性能分析
查看>>
ES6 javascript 实用开发技巧
查看>>
如何在新版的gitbook上写自己的书
查看>>
Java知识点总结(Java容器-ArrayList)
查看>>
Shared Event-loop for Same-Origin Windows(译)
查看>>
写一个简单易用可扩展vue表单验证插件(vue-validate-easy)
查看>>
使用stanford nlp进行依存句法分析
查看>>