Example #1
0
        internal static void SendRequest()
        {
            if (ManualTesting.CurrentRequest == null)
            {
                return;
            }

            if (!IronProxy.ProxyRunning)
            {
                throw new Exception("IronWASP Proxy is currently not running. IronWASP cannot send Requests unless the Proxy is started. Please go to the Proxy section of IronWASP and click on the 'Start Proxy' button to fix this problem.");
            }

            IronUI.ResetMTResponseDisplayFields();
            Request          Request = ManualTesting.CurrentRequest.GetClone();
            StringDictionary Flags   = new StringDictionary();

            Flags.Add("IronFlag-BuiltBy", "ManualTestingSection");
            Request.ID = Interlocked.Increment(ref Config.TestRequestsCount);
            StoreInGroupList(Request);
            SetCurrentID(Request.ID);
            IronDB.LogMTRequest(Request);
            IronUI.UpdateMTLogGridWithRequest(Request);
            Flags.Add("IronFlag-ID", Request.ID.ToString());
            Fiddler.FiddlerApplication.oProxy.InjectCustomRequest(Request.GetFiddlerHTTPRequestHeaders(), Request.BodyArray, Flags);
        }
Example #2
0
        internal static void SendRequest()
        {
            if (ManualTesting.CurrentRequest == null)
            {
                return;
            }
            IronUI.ResetMTResponseDisplayFields();
            Request          Request = ManualTesting.CurrentRequest.GetClone();
            StringDictionary Flags   = new StringDictionary();

            Flags.Add("IronFlag-BuiltBy", "ManualTestingSection");
            Request.ID = Interlocked.Increment(ref Config.TestRequestsCount);
            StoreInGroupList(Request);
            SetCurrentID(Request.ID);
            IronDB.LogMTRequest(Request);
            IronUI.UpdateMTLogGridWithRequest(Request);
            Flags.Add("IronFlag-ID", Request.ID.ToString());
            Fiddler.FiddlerApplication.oProxy.InjectCustomRequest(Request.GetFiddlerHTTPRequestHeaders(), Request.BodyArray, Flags);
        }
Example #3
0
        internal static void ScriptedSend()
        {
            if (ManualTesting.CurrentRequest == null)
            {
                return;
            }
            IronUI.ResetMTResponseDisplayFields();
            Request Request = ManualTesting.CurrentRequest.GetClone();

            Request.ID = Interlocked.Increment(ref Config.TestRequestsCount);
            StoreInGroupList(Request);
            SetCurrentID(Request.ID);
            IronDB.LogMTRequest(Request);
            IronUI.UpdateMTLogGridWithRequest(Request);
            ScriptedSender Sender   = new ScriptedSender(Request.GetClone(), Request.ID, ScSe);
            ThreadStart    TS       = new  ThreadStart(Sender.DoScriptedSend);
            Thread         SSThread = new Thread(TS);

            SSThread.Start();
        }