2017-04-09 5 views
0

onBeforeResponseを待たずに画像コンテンツを別のものに置き換える方法はありますか?FiddlerCoreは、onBeforeResponseを待たずに画像を置き換えます。

onBeforeRequest:

if (oSession.fullUrl.IndexOf(".png") > -1) { 
    oSession.fullUrl = "http://localhost/min.png"; 
} 

がonBeforeResponse:今私が使用している

if (oSession.fullUrl.IndexOf("http://localhost/") == 0) 
{ 
    oSession.LoadResponseFromFile(Application.StartupPath + "\\" + oSession.fullUrl.Substring(17)); 
} 

答えて

0

はそれを見つけた:

oSession.utilCreateResponseAndBypassServer(); 
oSession.LoadResponseFromFile(FilePath); 
関連する問題