fiddler javascript
来源:互联网 发布:四川大学网络教育平台 编辑:程序博客网 时间:2024/06/15 12:54
在 fiddler javascript 函数OnBeforeRequest 追加
static function OnBeforeRequest(oSession: Session) {
// Sample Rule: Color ASPX requests in RED
// if (oSession.uriContains(".aspx")) { oSession["ui-color"] = "red"; }
// Sample Rule: Flag POSTs to fiddler2.com in italics
// if (oSession.HostnameIs("www.fiddler2.com") && oSession.HTTPMethodIs("POST")) {oSession["ui-italic"] = "yup"; }
// Sample Rule: Break requests for URLs containing "/sandbox/"
// if (oSession.uriContains("/sandbox/")) {
// oSession.oFlags["x-breakrequest"] = "yup";// Existence of the x-breakrequest flag creates a breakpoint; the "yup" value is unimportant.
// }
if (oSession.host=="172.18.84.243:8080" || oSession.host=="121.43.173.128:8080" ) {
oSession["ui-color"] = "green";
oSession.host="127.0.0.1:8080"
}
if ((null != gs_ReplaceToken) && (oSession.url.indexOf(gs_ReplaceToken)>-1)) { // Case sensitive
oSession.url = oSession.url.Replace(gs_ReplaceToken, gs_ReplaceTokenWith);
}
if ((null != gs_OverridenHost) && (oSession.host.toLowerCase() == gs_OverridenHost)) {
oSession["x-overridehost"] = gs_OverrideHostWith;
}
if ((null!=bpRequestURI) && oSession.uriContains(bpRequestURI)) {
oSession["x-breakrequest"]="uri";
}
if ((null!=bpMethod) && (oSession.HTTPMethodIs(bpMethod))) {
oSession["x-breakrequest"]="method";
}
if ((null!=uiBoldURI) && oSession.uriContains(uiBoldURI)) {
oSession["ui-bold"]="QuickExec";
}
if (m_SimulateModem) {
// Delay sends by 300ms per KB uploaded.
oSession["request-trickle-delay"] = "300";
// Delay receives by 150ms per KB downloaded.
oSession["response-trickle-delay"] = "150";
}
if (m_DisableCaching) {
oSession.oRequest.headers.Remove("If-None-Match");
oSession.oRequest.headers.Remove("If-Modified-Since");
oSession.oRequest["Pragma"] = "no-cache";
}
// User-Agent Overrides
if (null != sUA) {
oSession.oRequest["User-Agent"] = sUA;
}
if (m_Japanese) {
oSession.oRequest["Accept-Language"] = "ja";
}
if (m_AutoAuth) {
// Automatically respond to any authentication challenges using the
// current Fiddler user's credentials. You can change (default)
// to a domain\\username:password string if preferred.
//
// WARNING: This setting poses a security risk if remote
// connections are permitted!
oSession["X-AutoAuth"] = "(default)";
}
if (m_AlwaysFresh && (oSession.oRequest.headers.Exists("If-Modified-Since") || oSession.oRequest.headers.Exists("If-None-Match")))
{
oSession.utilCreateResponseAndBypassServer();
oSession.responseCode = 304;
oSession["ui-backcolor"] = "Lavender";
}
}
- fiddler javascript
- Fiddler
- fiddler
- fiddler
- fiddler
- Fiddler
- Fiddler
- fiddler
- fiddler
- Fiddler
- Fiddler
- FIDDLER
- Fiddler
- Fiddler
- fiddler
- fiddler
- Fiddler
- fiddler
- 人工智能都要进小学了,你还在等什么?
- Android二维码快速生成和扫描
- eclipse svn 创建分支与合并,出现的问题
- 【学习】spring4.3.10之bean
- 9月8日国盟CISA每日一题 以下哪一种攻击最有可能影响网络资源的可用性? A.中间人 B.拒绝服务DOS C.网络钓鱼 D.结构化查询语言SQL注入 论坛讨论地址:http://www.cncisa
- fiddler javascript
- js的this指针指向谁,以及相关的call、apply、bind方法
- 驱动移植过程中DMA内存相关接口替换
- Android控件之AlertDialog-单选、多选信息列表弹出框
- linux操作系统中oracle数据库的密码过期问题解决
- 证书,私钥,公钥,pfx,keystore,pem,der 都是什么??
- IO流基本知识
- 脱离文档流分析
- 比特币水涨船高,黑客盯死数字货币