예제 #1
0
        private void ExecBtn_Click(object sender, EventArgs e)
        {
            // Execute
            int t;

            if (TimesTxt.Text.Length == 0)
            {
                t = 1;
            }
            else if (!int.TryParse(TimesTxt.Text, out t))
            {
                MessageBox.Show(@"Input number in Times");
                return;
            }

            for (int i = 0; i < t; i++)
            {
                PowerComposer.Execute();
            }
        }
예제 #2
0
 public void AutoTamperResponseAfter(Session oSession)
 {
     if (PowerComposer.IsFollowRedirection(oSession)) // redirect
     {
         if (Utilities.IsRedirectStatus(oSession.responseCode))
         {
             if (oSession.GetRedirectTargetURL().Length != 0)
             {
                 PowerComposer.IncrementRedir(ref oSession);
                 oSession["x-PC-host"] = "host";
                 PowerComposer.Send("GET",
                                    oSession.GetRedirectTargetURL(),
                                    oSession.RequestHeaders.HTTPVersion,
                                    oSession.RequestHeaders.ToString(false, false),
                                    "",
                                    oSession.oFlags,
                                    oSession.GetRedirectTargetURL());
             }
         }
     }
 }