Fiddler SessionFlags

Each Session object in Fiddler contains a collection of string flags, in the Session.oFlags[] collection.  The flags control how the session is processed and displayed in the Fiddler session list.  Flags can be set by FiddlerScript or an IFiddlerExtension.

Tips 

  • Flag names are not case-sensitive.  Flag values are always strings.
  • If you examine oFlags["non-existent-flag"], the result will be null.
  • The oFlags collection is the "indexer" for the Session object.  Thus,oSession.oFlags["flagname"] can be written as oSession["flagname"] or oSession["SESSION", "flagname"].
  • You can remove a flag from the list by calling oFlags.Remove("flagname") or settingoSession["flagname"] = null.
  • The value of most flags is not important; simply adding the flag is enough.  So (perhaps surprisingly) oSession["ui-hide"]="no" does the same thing as oSession["ui-hide"] = "true" -- it hides the session.
  • While you can call oFlags.Add("flagname"), this will throw an exception if the flag already exists.  It's better to just set the value: oFlags["flagname"] = "value";
  • You can create new flags of your own invention that attach metadata to a given session. To avoid naming conflicts, it's recommended that you choose distinctive flagnames, e.g.addon.acme.loggingFlag.

 

Flag NameMeaning
ui-hideHide the session from the Session List.  
The session will continue to run.  Breakpoints on hidden sessions are ignored.
Note: hiding a session will free up the memory that would otherwise be used to hold the session data in memory.
  
ui-colorThe value of this flag determines the font color used to render this session in the Session List.
ui-backcolorThe value of this flag determines the background color used behind this session's entry in the Session List.
ui-boldIf present, this session's entry will be bolded in the Session List.
ui-italicIf present, this session's entry will be italicized in the Session List.
ui-strikeoutIf present, this session's entry will be struck out in the Session List.
ui-customcolumnThe value of this flag is shown in the Fiddler Session List's "User-defined" column.
  
ui-breakrequestIf present, execution of this session will pause before the request is issued.
ui-breakresponseIf present, execution of this session will pause after the response is received.
ui-commentsThe Comment, if any, which the user set on this session.
x-overrideHostProvide the Host:Port combination which should be used for DNS resolution purposes. Note that this mechanism does not change the HOST header on the request, and thus is not useful if there's an upstream gateway.
x-overrideGatewayProvide the Host:Port combination of a gateway that should be used to proxy this request, or DIRECT to send the request directly to the origin server.
  
x-serversocketRead-only.  String containing data about the reuse status of the server socket.
x-securepipeRead-only. String containing data about the reuse status of a secure server socket.
x-no-decryptIf set on a CONNECT tunnel, the traffic in the tunnel will not be decrypted.  Requires Fiddler v2.0.8.9 or later.
https-Client-CertificateFilename of client certificate (e.g. .CER) that should be attached to this secure request.  Requires Fiddler v2.1.0.3 or later.
x-SuppressProxySupportHeaderPrevent Fiddler from adding a "Proxy-Support: Session-Based-Authentication" header to HTTP/401 or HTTP/407 responses that request Negotiate or NTLM authentication.   Requires Fiddler v2.1.4.2 or later.
  
x-ProcessInfoInformation (module name and ProcessID) on source of local requests. Requires Fiddler v2.1.4.1 or later.
x-clientIPRead-only.  Indicates the client IP that sent this request.  Mostly useful when multiple computers on a network are pointed to a single Fiddler instance.
x-clientportRead-only.  Indicates the port on the client that sent this request.
x-hostIPRead-only.  Indicates the IP address of the server used for this request.
  
x-TTFBDeprecated.  Use oSession.Timer instead.  Time to the first byte of the response, in milliseconds.
x-TTLBDeprecated.  Use oSession.Timer instead.  Time to the last byte of the response, in milliseconds.
request-trickle-delayMilliseconds to delay each outbound kilobyte of request data.
response-trickle-delayMilliseconds to delay each inbound kilobyte of response data.
  
x-HTTPProtocol-ViolationContains data about violations of the HTTP protocol encountered while processing this session.
  
  
x-replywithfileThe value of this flag is the name of a file in the Captures/Responses folder (or a fully-qualified filename) containing a HTTP response to return to the client rather than sending the request to the server.
x-repliedwithfileRead-only.  Contains the name of the file specified in x-replywithfile, after the automatic response was loaded.
  
log-drop-request-bodyDrop the request body from the session list after request is sent to the server.  Useful for minimizing memory usage.
log-drop-response-bodyDrop the request body from the session list after response is sent to the client.  Useful for minimizing memory usage.
  
x-OverrideCertCNString specifying the hostname that should appear in the CN field of this CONNECT tunnel's Fiddler-generated certificate.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值