问题描述
这是代码
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;
但是输出很奇怪
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.如果您发现任何样式问题,我很乐意倾听
p.s. if you notice any style problem, I am glad to listen
推荐答案
我不确定我是否了解您遇到的问题.您的输出的哪一部分出乎意料?
I'm not sure I understand what problem you're having. What part of your output is unexpected?
如果在Fiddler本身中打开相同的.SAZ文件,您会看到什么?
What do you see if you open the same .SAZ file in Fiddler itself?
如果我不得不猜测,我的猜测是您捕获了HTTPS
站点的此捕获,而您尚未启用HTTPS解密.因此,您的所有请求都将采用CONNECT SECURESITE.COM HTTP/1.1
的形式,但是您将看不到任何实际的GET
或POST
请求.
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.
这篇关于我在FiddlerScript中阅读sessionSessionArchive()有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!