博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Pause Web Sessions
阅读量:7217 次
发布时间:2019-06-29

本文共 840 字,大约阅读时间需要 2 分钟。

To pause specific sessions,  using FiddlerScript to the OnBeforeRequest function (except where noted). For example:

Pause all HTTP POSTs to allow hand-editing (the POST verb is often used for submitting forms)

if (oSession.HTTPMethodIs("POST")){ oSession["x-breakrequest"]="breaking for POST"; }

Pause all HTTP POSTs that contain 'thekeyword'

if (oSession.HTTPMethodIs("POST") && (oSession.utilFindInRequest("thekeyword", true) > -1)){ oSession["x-breakrequest"] = "keyword"; }

Pause a request for an XML file to allow hand-editing

if (oSession.url.toLowerCase().indexOf(".xml")>-1){ oSession["x-breakrequest"]="reason_XML"; }

Pause a response containing JavaScript to allow hand-editing (in OnBeforeResponse)

if (oSession.oResponse.headers.ExistsAndContains("Content-Type", "javascript")){ oSession["x-breakresponse"]="reason is JScript"; }

转载地址:http://aetym.baihongyu.com/

你可能感兴趣的文章
大三哩
查看>>
Django链接数据库步骤
查看>>
CSS em与px区别-CSS教程
查看>>
Lightroom学习随笔
查看>>
LVS负载均衡
查看>>
redis桌面管理工具 redis-desktop-manager使用指南(转)
查看>>
DataGridView发生异常
查看>>
wordpress安装
查看>>
bzoj2020[Usaco2010 Jan]Buying Feed, II*
查看>>
ios中tableview网封装(viewcontroller封装)常用的
查看>>
【leetcode】7.反转整数(Reverse Integer)
查看>>
1013. Battle Over Cities (25)(DFS遍历)
查看>>
[Go]结构体及其方法
查看>>
软件测试面试题(一)
查看>>
各种主流 SQLServer 迁移到 MySQL 工具对比
查看>>
github入门教程
查看>>
Zookeeper整理(一)- 写操作产生事件,写操作与Watcher对应关系
查看>>
05、解密吴氏私厨
查看>>
连续最长加班天数
查看>>
C#帮助类:MD5加密
查看>>