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 [Web Session List][4]. Flags can be set by FiddlerScript or an IFiddlerExtension.

Using SessionFlags

  • 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, so 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
    • Setting oSession["flagname"] = null
  • The value of most flags is not important; simply adding the flag is enough. So oSession["ui-hide"]="no" does the same thing as oSession["ui-hide"] = "true" (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 that attach metadata to a given session. To avoid naming conflicts, it's recommended that you choose distinctive flagnames. For example: addon.acme.loggingFlag.

UI Flags

ui-hide

Hide 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-color

The value of this flag determines the font color used to render this session in the Session List.

ui-backcolor

The value of this flag determines the background color used behind this session's entry in the Session List.

ui-bold

If present, this session's entry will be bolded in the Session List.

ui-italic

If present, this session's entry will be italicized in the Session List.

ui-strikeout

If present, this session's entry will be struck out in the Session List.

ui-customcolumn

The value of this flag is shown in the Fiddler Session List's "User-defined" column.

ui-comments

The Comment, if any, which the user set on this session.

Breakpoint Flags

ui-breakrequest

If present, execution of this session will pause before the request is issued.

ui-breakresponse

If present, execution of this session will pause after the response is received.

Host Flags

x-overrideHost

Provide 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-hostIP

Read-only. Indicates the IP address of the server used for this request.

x-overrideGateway

Provide 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.

Client Flags

x-ProcessInfo

Information (module name and ProcessID) on source of local requests. Requires Fiddler v2.1.4.1 or later.

x-clientIP

Read-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-clientport

Read-only. Indicates the port on the client that sent this request.

Socket Reuse Flags

x-serversocket

Read-only. String containing data about the reuse status of the server socket.

x-securepipe

Read-only. String containing data about the reuse status of a secure server socket.

Decryption and Authentication Flags

x-no-decrypt

If set on a CONNECT tunnel, the traffic in the tunnel will not be decrypted. Requires Fiddler v2.0.8.9 or later.

https-Client-Certificate

Filename of client certificate (e.g. .CER) that should be attached to this secure request. Requires Fiddler v2.1.0.3 or later.

x-OverrideCertCN

String specifying the hostname that should appear in the CN field of this CONNECT tunnel's Fiddler-generated certificate.

x-SuppressProxySupportHeader

Prevent 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.

Performance Flags

x-TTFB

Deprecated. Use oSession.Timer instead. Time to the first byte of the response, in milliseconds.

x-TTLB

Deprecated. Use oSession.Timer instead. Time to the last byte of the response, in milliseconds.

request-trickle delay

Milliseconds to delay each outbound kilobyte of request data.

response-trickle-delay

Milliseconds to delay each inbound kilobyte of response data.

AutoResponder Flags

x-replywithfile

The 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-repliedwithfile

Read-only. Contains the name of the file specified in x-replywithfile, after the automatic response was loaded.

Drop Sessions Flags

log-drop-request-body

Drop the request body from the session list after request is sent to the server. Useful for minimizing memory usage.

log-drop-response-body

Drop the request body from the session list after response is sent to the client. Useful for minimizing memory usage.

Fiddler Session标志的更多相关文章

  1. fiddler笔记:与Web Session的交互

    Decode Selected Session 解决响应体显示乱码的问题. AutoScroll Session List 决定Fiddler是否会自动将新增的Session添加到web sessio ...

  2. Fiddler讲解3

    想要 浏览更多Fiddler内容:请点击进入Fiddler官方文档 阅读目录: 一.Fiddler自定义请求: 二.Fiddler修改请求: 三.减少期望的延迟:100个继续标题: 四.重命名无效的P ...

  3. session的销毁

    删除某个session标志: session.removeAttribute("sessionUserName");移除用户,但session不变,下次登陆的时候看到的sessio ...

  4. Fiddler源代码分享

    frmViewer.cs: namespace Fiddler{    using Microsoft.Win32;    using System;    using System.Collecti ...

  5. LogBack sl4j 通过MDC实现日志记录区分用户Session[以Spring mvc为例]

    1.首先实现一个interceptor,在请求开始的时候MDC put一个Session标志,interceptor结束的时候remove掉   import javax.servlet.http.H ...

  6. FreeHttp (a fiddler add in to temper the http)

    introduction FreeHttp is a Fiddler plugin. With FreeHttp you can modify the request or response mess ...

  7. [转载] Fiddler为所欲为第二篇 像OD一样调试 [二]

    首先,如果大家没有看过第一篇,可以先看看第一篇,了解Fiddler script的脚本哦.传送门:https://www.52pojie.cn/thread-854434-1-1.html 导语:其实 ...

  8. C#爬虫----Fiddler 插件开发 自动生成代码

    哈喽^_^ 一般我们在编写网页爬虫的时候经常会使用到Fiddler这个工具来分析http包,而且通常并不是分析一个包就够了的,所以为了把更多的时间放在分析http包上,自动化生成封包代码就尤为重要了( ...

  9. Fiddler插件开发 - 实现网站离线浏览功能

    有这么一种应用场景: 你是做前端或APP开发的,需要调用服务端提供的接口,接口只能在公司内网访问:在公司外就无法调试代码了. 想在公司外访问怎么办呢? 如果在公司的时候将所有接口的响应内容都保存起来, ...

随机推荐

  1. 获取数据库连接对象(线程ThreadLocal)

    /** * 负责数据库连接定义的程序类 * 该类可以负责所有操作线程的数据库连接,利用get()方法可以获得连接对象 */ public class DatabaseConnection { priv ...

  2. JAVA设计模式之门面模式(外观模式)

    医院的例子 现代的软件系统都是比较复杂的,设计师处理复杂系统的一个常见方法便是将其“分而治之”,把一个系统划分为几个较小的子系统.如果把医院作为一个子系统,按照部门职能,这个系统可以划分为挂号.门诊. ...

  3. 2017微软 MVP 数据实践技术活动日(北京站)

    Power BI | 交互式数据可视化 BI 工具 EXCEL BI :无所不能的业务数据分析利器 EXCEL +POWERBI=EXCEL BI https://edu.hellobi.com/co ...

  4. Kernel Newbies内核开发新手的资源

    Jessica McKellar在Ksplice blog上的博客文章 <Linux Device Drivers> 如果你在写一个操作系统,OSDev wiki是一个不错的网站 Kern ...

  5. css3 3d展示中rotate()介绍与简单实现

    最近在了解css3的3d动画效果,学习发现,css3中的3d效果实现还是很好玩的,现在我给你大家简单的介绍一下css3中3d效果的实现. 我也只是一个初学者,如果在博客中写的不对的地方欢迎指正. 好了 ...

  6. UCN(User-Centric Networks,用户中心网络)

    UCN(User-Centric Networks,以用户为中心的网络)是下一代移动通信网络(5G)的发展方向,目前尚处于初级发展阶段.2016年11月,IEEE SDN研究组(聚焦研发SDN.NFV ...

  7. 3D几何图形的生成算法

    在之前的博客上,发布了一个我写的3D几何图形生成的DEMO: http://www.cnblogs.com/WhyEngine/p/3415040.html DEMO下载地址: http://file ...

  8. otl翻译(11) -- OTL的迭代器

    OTL stream read iterator 这个类是一个像传统的JDBC中的getter()操作一样扩展了OTL流的模板类.它现在还不支持UNICODE字符集.它对otl_refcur_stre ...

  9. Java实现对Mysql的图片存取操作

    1.MySQL中的BLOB类型 Mysql中可以存储大文件数据,一般使用的BLOB对象.如图片,视频等等. BLOB是一个二进制大对象,可以容纳可变数量的数据.因为是二进制对象,所以与编码方式无关.有 ...

  10. iOS开发-搜索栏UISearchBar和UISearchController

    iOS中UISearchDisplayController用于搜索,搜索栏的重要性我们就不说了,狼厂就是靠搜索起家的,现在越来越像一匹没有节操的狼,UC浏览器搜索栏现在默认自家的神马搜索,现在不管是社 ...