예제 #1
0
        public void SetRequest(Request Req)
        {
            if (this.BaseTabs.InvokeRequired)
            {
                SetRequest_d InvokeDelegate_d = new SetRequest_d(SetRequest);
                this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Req });
            }
            else
            {
                this.ClearData();

                this.SetHeader(Req);
                this.SetBody(Req);
                this.SetUrlPathPartsParameters(Req);
                this.SetQueryParameters(Req);

                this.SetCookieParameters(Req);
                this.SetHeadersParameters(Req);

                FormatPluginsGrid.Rows.Clear();
                FormatPluginsGrid.Rows.Add(new object[] { false, "   --   " });
                foreach (string Name in FormatPlugin.List())
                {
                    FormatPluginsGrid.Rows.Add(new object[] { false, Name });
                }
                //this.SetBodyParameters(Req);
                this.AutoDetectFormatAndSetBodyParameters(Req);
                this.ResetAllChangedValueStatus();
                this.DisplayedRequest = Req;
            }
        }
예제 #2
0
        public void SetRequest(Request Req)
        {
            if (this.BaseTabs.InvokeRequired)
            {
                SetRequest_d InvokeDelegate_d = new SetRequest_d(SetRequest);
                this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Req });
            }
            else
            {
                this.ClearData();

                this.SetHeader(Req);
                this.SetBody(Req);
                this.SetUrlPathPartsParameters(Req);
                this.SetQueryParameters(Req);

                this.SetCookieParameters(Req);
                this.SetHeadersParameters(Req);

                FormatPluginsGrid.Rows.Clear();
                FormatPluginsGrid.Rows.Add(new object[] { false, "   --   " });
                foreach (string Name in FormatPlugin.List())
                {
                    FormatPluginsGrid.Rows.Add(new object[]{false, Name});
                }
                //this.SetBodyParameters(Req);
                this.AutoDetectFormatAndSetBodyParameters(Req);
                this.ResetAllChangedValueStatus();
                this.DisplayedRequest = Req;
            }
        }