// In global scope, add this var:
var bFile1: boolean = true;
// Inside OnBeforeRequest add this:
if (oSession.fullUrl.Contains("whateverIAmLookingFor"))
{
if (!bFile1){
oSession["x-replywithfile"] = "C:\\temp\\file2.dat";
bFile1 = true;
}
else
{
oSession["x-replywithfile"] = "C:\\temp\\file1.dat";
bFile1 = false;