本文整理汇总了C#中IronWASP.Request类的典型用法代码示例。如果您正苦于以下问题:C# Request类的具体用法?C# Request怎么用?C# Request使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Request类属于IronWASP命名空间,在下文中一共展示了Request类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Trigger
public Trigger(string RequestTrigger, Request Req, string ResponseTrigger, Response Res)
{
this.RequestTrigger = RequestTrigger;
this.Request = Req.GetClone();
this.ResponseTrigger = ResponseTrigger;
this.Response = Res.GetClone();
}
示例2: BodyFormatParamters
internal BodyFormatParamters(Request Request, FormatPlugin Plugin, List<bool>CheckStatus, bool CheckAll)
{
this.Request = Request;
this.Plugin = Plugin;
this.CheckStatus = CheckStatus;
this.CheckAll = CheckAll;
}
示例3: Is
public override bool Is(Request Req)
{
try
{
return Tools.IsSoap(Req.BodyString.Trim());
}
catch { return false; }
}
示例4: Is
public override bool Is(Request Req)
{
try
{
return Tools.IsJson(Req.BodyString);
}
catch { return false; }
}
示例5: Add
public void Add(string RequestTrigger, string RequestTriggerDescription, Request Req, string ResponseTrigger, string ResponseTriggerDescription, Response Res)
{
if (Req != null || Res != null)
{
Trigger T = new Trigger(RequestTrigger, RequestTriggerDescription, Req, ResponseTrigger, ResponseTriggerDescription, Res);
this.TriggerList.Add(T);
}
}
示例6: AddProbeString
public static void AddProbeString(string ProbeString, Request InjectedRequest)
{
Request ClonedReq = InjectedRequest.GetClone();
lock (ProbeStrings)
{
ProbeStrings.Add(ProbeString, ClonedReq);
}
}
示例7: Add
public void Add(Request Req, Response Res)
{
List<string> CookieStrings = new List<string>();
foreach (SetCookie SC in Res.SetCookies)
{
CookieStrings.Add(SC.FullString);
}
Add(Req.Host, CookieStrings);
}
示例8: Get
public static List<FormatPlugin> Get(Request Request)
{
List<FormatPlugin> RightPlugins = new List<FormatPlugin>();
foreach (string Name in List())
{
if (Get(Name).Is(Request)) RightPlugins.Add(Get(Name));
}
return RightPlugins;
}
示例9: Session
public Session(Fiddler.Session _FiddlerSession)
{
this.FiddlerSession = _FiddlerSession;
this.Request = new Request(this.FiddlerSession);
if (this.FiddlerSession.bHasResponse)
{
this.Response = new Response(this.FiddlerSession);
}
}
示例10: Trigger
public Trigger(string RequestTrigger, string RequestTriggerDescription, Request Req, string ResponseTrigger, string ResponseTriggerDescription, Response Res)
{
this.RequestTrigger = RequestTrigger;
this.RequestTriggerDescription = RequestTriggerDescription;
this.Request = Req.GetClone();
this.ResponseTrigger = ResponseTrigger;
this.RawResponseTriggerDescription = ResponseTriggerDescription;
this.Response = Res.GetClone();
}
示例11: Get
public static List<FormatPlugin> Get(Request Request, List<string> FormatsToCheckFor)
{
List<FormatPlugin> RightPlugins = new List<FormatPlugin>();
foreach (string Name in List())
{
if (!FormatsToCheckFor.Contains(Name)) continue;
if (Get(Name).Is(Request)) RightPlugins.Add(Get(Name));
}
return RightPlugins;
}
示例12: AddToTriggers
void AddToTriggers(string RequestTrigger, string RequestTriggerDesc, Request TriggerRequest, string ResponseTrigger, string ResponseTriggerDesc, Response TriggerResponse)
{
this.RequestTriggers.Add(RequestTrigger);
this.ResponseTriggers.Add(ResponseTrigger);
this.RequestTriggerDescs.Add(RequestTriggerDesc);
this.ResponseTriggerDescs.Add(ResponseTriggerDesc);
this.TriggerRequests.Add(TriggerRequest);
this.TriggerResponses.Add(TriggerResponse);
this.TriggerCount = this.TriggerCount + 1;
}
示例13: Highlight
public static string Highlight(Request Req, List<string> ToHighlight)
{
string ReqHeader = Req.GetHeadersAsString();
string Body = Req.BodyString;
ReqHeader = InsertHighlights(ReqHeader, ToHighlight);
Body = InsertHighlights(Body, ToHighlight);
StringBuilder SB = new StringBuilder();
SB.Append(SnipHeaderSection(ReqHeader));
SB.AppendLine(); SB.AppendLine();
SB.Append(SnipBodySection(Body));
return SB.ToString();
}
示例14: Is
public override bool Is(Request Req)
{
try
{
if (Req.Headers.Has("Content-Type"))
{
if (Req.Headers.Get("Content-Type").Trim().StartsWith("multipart", StringComparison.OrdinalIgnoreCase))
{
return true;
}
}
return false;
}
catch { return false; }
}
示例15: GetMismatchedQueryParameterNames
List<string> GetMismatchedQueryParameterNames(Request ReqOne, Request ReqTwo)
{
List<string> ParamNames = new List<string>();
foreach (string Name in ReqOne.Query.GetNames())
{
if (!AreListValuesSame(ReqOne.Query.GetAll(Name), ReqTwo.Query.GetAll(Name)))
{
ParamNames.Add(Name);
}
}
return ParamNames;
}