I have problems to readSessionArchive() in FiddlerScript

强颜欢笑 提交于 2019-12-11 16:46:57

问题


so here is the code

case "kancolle":
    FiddlerObject.log("kancolle start");
    var inputPath = **     // ** is certain input path
    var kanFiles:String[] = System.IO.Directory.GetFiles(inputPath, "*.saz");
    for (var i:int = 0; i<kanFiles.Length; ++i)   // just 1 file in fact
    {
        FiddlerObject.log("kanFiles: " + i);
        var kanSessions:Session[] = Utilities.ReadSessionArchive(kanFiles[i], true);
        for (var i1:int = 0; i1<kanSessions.Length; ++i1)   // 23 sessions there
        {
            FiddlerObject.log("kanSessions: " + i1);
            FiddlerObject.log(kanSessions[i].url);
        }
    }
    break; 

however the output is strange

    kancolle start
    kanFiles: 0
    kanSessions: 0
    www.urlForTheFirstSession.com  // not a real url
    kanSessions: 1 
    www.urlForTheFirstSession.com  // still the same
    ....                           // and continues

I know that this piece of code looks bad, and this is because the are made up together from several others. But I assumed it would work, and now I can't do anything about it.

p.s. if you notice any style problem, I am glad to listen


回答1:


I'm not sure I understand what problem you're having. What part of your output is unexpected?

What do you see if you open the same .SAZ file in Fiddler itself?

If I had to guess, my guess would be that you took this capture of a HTTPS site and you hadn't enabled HTTPS decryption. So all of your requests will be of the form CONNECT SECURESITE.COM HTTP/1.1 but you wouldn't see any of the actual GET or POST requests.



来源:https://stackoverflow.com/questions/20026227/i-have-problems-to-readsessionarchive-in-fiddlerscript

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!