• fiddler抓包 443 请求不到数据


    使用fiddler抓包,有的http请求抓不到数据显示443,很费解!但是有的就可以,偶遇如下解决方案,试了下解决了。道声谢!!!

    前提装好fiddler配置好代理,然后安装好证书

    找到右侧选项卡: FiddlerScript > Go to > 下拉选择 OnBeforeRequest,把下边代码贴在方法的最后边,保存!

    var hosts = 'zkd.me develop.dog';
    FiddlerApplication.Log.LogFormat("Logger session {0}, Url: {1}, isHttps: {2}, port: {3}", oSession.id, oSession.fullUrl, oSession.isHTTPS, oSession.port);
    if (hosts.indexOf(oSession.host) > -1) {
        FiddlerApplication.Log.LogFormat("Capture session {0}, Url: {1}, isHttps: {2}, port: {3}", oSession.id, oSession.fullUrl, oSession.isHTTPS, oSession.port);
        if (oSession.HTTPMethodIs('CONNECT')) {
            FiddlerApplication.Log.LogString('create fake tunnel response');
            oSession['x-replywithtunnel'] = 'FakeTunnel';
            return;
        }
    
        if (oSession.isHTTPS) {
            FiddlerApplication.Log.LogString('switch https to http request');
            oSession.fullUrl = oSession.fullUrl.Replace("https://", "http://");
            oSession.port = 80;
        }
    
        FiddlerApplication.Log.LogFormat("Processed session {0}, Url: {1}, isHttps: {2}, port: {3}", oSession.id, oSession.fullUrl, oSession.isHTTPS, oSession.port);
    }
    FiddlerApplication.Log.LogFormat("Logger session {0}, Url: {1}, isHttps: {2}, port: {3}", oSession.id, oSession.fullUrl, oSession.isHTTPS, oSession.port);
    

    参考:

  • 相关阅读:
    接口和抽象的区别
    接口
    jquery Ajax提交表单数据
    SQL 检查 是否存在 表 临时表
    ASP.NET MVC 设置Area中 Controller 的方法 默认启动页
    json 序列化为数组
    C# Lamda中类似于SQL 中的 In 功能
    各种webservice调用地址
    ASP.NET获取客户端IP地址
    C#反射机制 Type类型
  • 原文地址:https://www.cnblogs.com/linyufeng/p/13689395.html
Copyright © 2020-2023  润新知