zoukankan      html  css  js  c++  java
  • Pause Web Sessions

    To pause specific sessions, add rules 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"; 
        }
  • 相关阅读:
    最长上升子序列问题总结
    Problem C
    Problem C
    Problem P
    Problem P
    Problem H
    Problem H
    Problem D
    Problem D
    Linux系统调用--getrlimit()与setrlimit()函数详解
  • 原文地址:https://www.cnblogs.com/hushaojun/p/6945696.html
Copyright © 2011-2022 走看看