Fiddler Session标志

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.

时间: 2024-09-29 05:22:16

Fiddler Session标志的相关文章

fiddler——session的操作

(一).删除某一个session会话,选中一个session,再选择,: 删除当前选中的: 选择没有选中的(反选): 删除所有: (二).删除某一类session会话,或者删除所有session(remove all): (三).删除所有session: quickexec命令行输入:cls 命令: 原文地址:https://www.cnblogs.com/xiaobaibailongma/p/12121464.html

fiddler学习笔记--web session列表

Web Session列表是Fiddler中最重要的部分--它显示了Fiddler多捕捉到的每个Session的简短的摘要信息. 1. Web Session列表栏中各项信息代表的含义 (1)# - Fiddler为Session生成的ID (2)Result - 响应状态码 (3)Protocol - 该Session使用的协议(HTTP/HTTPS/FTP) (4)URL - 请求URL的路径.文件和查询字符串 (5)Host - 接收请求的服务器的主机名和端口号 (6)Body - 响应体

Fiddler 高级用法:Fiddler Script 与 HTTP 断点调试

之前在<关于 WEB/HTTP 调试利器 Fiddler 的一些技巧分享>中系统的介绍过 Fiddler 的原理与一些常见技巧,但那篇文章只是入门科普,并不深入,今天要介绍到的内容相对更加高级与深入,扩展性更好,功能更加强大. 1.Fiddler Script 1.1 Fiddler Script简介 在web前端开发的过程中,fiddler是最常使用的一款调试工具.在大多数情况下,通过fiddler默认菜单的功能就可以基本满足开发者的调试需求,然而如果需要满足更复杂的调试场景时,单纯通过fi

图解用Fiddler做http协议分析入门

一 Fiddler使用入门 安装: 看一下这是Telerik的产品: 捕获http包的界面: 会显示http包的详情: 统计情况:各种请求.响应的时刻,和一些过程的耗时:比如本次捕获的包DNS解析耗时6ms: 此处可看到包的一些细节,以及Cookies: 按照http协议包的多种过滤器:比如下图隐藏状态码为2xx成功.300.301.302.303.307.304的包:过滤后还剩下五个: 二 HTTP调试工具 fiddler图文使用教程 Fiddler可以帮您记录,调试Microsoft Int

Fiddler源代码分享

frmViewer.cs: namespace Fiddler{    using Microsoft.Win32;    using System;    using System.Collections;    using System.Collections.Generic;    using System.Collections.Specialized;    using System.ComponentModel;    using System.Diagnostics;    usi

IE浏览器下Fiddler无法本地调试的问题

首先我们应该了解,这个无法本地调试的问题并不是个BUG,微软官方是有给出过解释的,这是源于IE浏览器和.NET框架对于本地请求是不走代理 的,因而Fiddler无法检测数据.当然,你也可以使用Firefox浏览器进行调试,目前fiddler的最新版本已经支持Firefox.不过这里 我们也给出了在IE浏览器下的解决方案. 1.使用机器名代替localhost或者12.7.0.1,例如,你之前使用http://localhost:8081/mytestpage.aspx来访问,那换成 http:/

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 IFiddlerExte

Fiddlercore Demo - Fiddler

public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { Fiddler.FiddlerApplication.OnNotification += FiddlerApplication_OnNotification; Fiddler.FiddlerApplication.Log.OnLogSt

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

哈喽^_^ 一般我们在编写网页爬虫的时候经常会使用到Fiddler这个工具来分析http包,而且通常并不是分析一个包就够了的,所以为了把更多的时间放在分析http包上,自动化生成封包代码就尤为重要了(其实之前已经有第三方的插件了,自己编写主要是为了适配自定义的http请求模块)! 首先注册拖拽事件 允许直接在Fiddler Session列表中拖入Session到插件界面 1 private void TrCode_Load(object sender, System.EventArgs e)