예제 #1
0
 public void AutoTamperRequestBefore(Session oSession)
 {
     if (variablesList == null) return;
     foreach (var variable in variablesList)
     {
         oSession.utilReplaceInRequest("{{" + variable.Token + "}}", variable.Value);
         oSession.url = oSession.url.Replace("{{" + variable.Token + "}}", variable.Value);
         foreach (var header in oSession.RequestHeaders)
             header.Value = header.Value.Replace("{{" + variable.Token + "}}", variable.Value);
     }
 }