だから私は、次のようなコードでローカルファイルをキャッシュしているアプリケーションを持っています:
Fiddler.FiddlerApplication.BeforeRequest += delegate(Fiddler.Session oS)
{
if (oS.url.StartsWith("foo.com/"))
{
oS.utilCreateResponseAndBypassServer();
oS.oFlags["x-replywithfile"] = Path.GetFullPath(oS.url.Replace("foo.com/", "serve/"));
}
}
これは、2GB 未満のファイルであれば問題なく機能します。2GB を超えると、次のエラーが表示されます。
Fiddler - The requested file could not be read. The file is too long. This operation is currently limited to supporting files less than 2 gigabytes in size.
File.ReadAllBytes
内部的には、intの最大サイズのために2GBに制限されているようなものをFiddlerが使用していると想定しています。私が知る限り、FiddlerCoreを開いてこれを変更するためのソースコードはありません...誰もこの制限を回避する方法を知っていますか?