Log Sessions to Local Database

  1. Add Rules to Fiddler to create a new menu item as follows:

    // Log the currently selected sessions in the list to a database.
    // Note: The DB must already exist and you must have permissions to write to it.
    public static ToolsAction("Log Selected Sessions")
    function DoLogSessions(oSessions: Fiddler.Session[]){
    if (null == oSessions || oSessions.Length < 1){
      MessageBox.Show("Please select some sessions first!");
      return;
    }
    var strMDB = "C:\\log.mdb";
    var cnn = null;
    var sdr = null;
    var cmd = null;
    try
    {
      cnn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strMDB);
      cnn.Open();
      cmd = new OleDbCommand();
      cmd.Connection = cnn;
    
      for (var x = 0; x < oSessions.Length; x++){
        var strSQL = "INSERT into tblSessions ([ResponseCode],[URL]) Values (" +
        oSessions[x].responseCode + ", ‘" + oSessions[x].url + "‘)";
        cmd.CommandText = strSQL;
        cmd.ExecuteNonQuery();
      }
    }
    catch (ex){
      MessageBox.Show(ex);
    }
    finally
    {
      if (cnn != null ){
        cnn.Close();
      }
    }
    }
  2. List the new import at the top of your rules script as follows:
    import System.Data.OleDb;
  • Note: This example relies upon OLEDB 4.0 which is not available for 64bit processes. Either:

时间: 2024-10-09 07:02:51

Log Sessions to Local Database的相关文章

SQL Network Interfaces, error: 50 - 发生了 Local Database Runtime 错误。无法创建自动实例。

今天在用VS2013自带的LocalDB调整数据库时出错,在网上也搜到许多方案,如卸载SQLServer LocalDB的程序.重新创建实例等都没有解决我的问题,也重新修改以及修复Vs,问题依旧存在,仔细思索研究后找到了解决方案: 1.先贴问题(注:我这里是LocalDB V11.0不能使用): Microsoft Visual Studio --------------------------- 尝试附加到数据库失败并出现以下信息: 在与 SQL Server 建立连接时出现与网络相关的或特定

postgresql数据库删除时提示回话 sessions using the database

数据库命令行或者管理工具中执行删除数据库的命令, DROP DATABASE testdb; 的时候,可能会提示: ERROR: database "testdb" is being accessed by other users DETAIL: There are 3 other sessions using the database. 这个意思是说,删除数据库失败,因为这里还有3个链接连接到该数据库上,PostgreSQL在有进程连接到数据库时,对应的数据库是不运行被删除的. 那么

Local database deployment problems and fixtures

/*By Jiangong SUN*/ After encountering some problems in deploying databases to local server, here are some tips which could be helpful in the database deployment exercises. When you deploy your databases. You can monitor the progress in "Data Tools O

[archlinux][daily][pacman] local database 损坏

下午,开心的看着dpdk的文档,做做各种小实验. 后台正常yaourt -Syu,三个多G的下载,我总是过很久才update一次. 然后KDE窗口各种异常,我知道又在开始更x相关的东西了.可是因为X异常所以看见konsole.于是脑残的我就reboot了... 是reboot,不是systemctl reboot.(不明白我为什么这么脑残,既然出现了异常,说明已经download完成,开始install了,等一下就好了嘛,重启没有任何帮助.) 重启之后,果然出了问题,无线网卡驱动不起来了.幸好还

【翻译自mos文章】在重建控制文件之后,丢失了数据库补充日志信息(Missed Database Supplemental Log Information)

在重建控制文件之后,丢失了数据库补充日志信息(Missed Database Supplemental Log Information) 参考原文: Missed Database Supplemental Log Information After Recreate Controlfile In 10g Database. (Doc ID 1474952.1) 适用于: Oracle Server - Enterprise Edition - Version 10.1.0.2 and late

P6 EPPM Manual Installation Guide (Oracle Database)

Contents Oracle Database Manual Configuration Overview ,,★★5 Oracle Database Installation ,,★★6 Creating the Database Structure for Oracle and Loading Application Data ,,★★7 Creating the P6 EPPM Database Structure for Oracle ,,★★7 Copying the Script

Database Initialization Parameters for Oracle E-Business Suite Release 12

In This Document Section 1: Common Database Initialization Parameters For All Releases Section 2: Release-Specific Database Initialization Parameters For Oracle 10g Release 2 Section 3: Release-Specific Database Initialization Parameters For Oracle 1

Local Databases with SQLiteOpenHelper

Overview For maximum control over local data, developers can use SQLite directly by leveraging SQLiteOpenHelper for executing SQL requests and managing a local database. In this guide, we'll use the example of building a database to persist user crea

创建数据库 - with CREATE DATABASE STATEMENT

1. Set SIDin bashORACLE_SID=ocmexport ORACLE_SID2. Set Env VarsORACLE_SID and ORACLE_HOME3. Choose a Database Administrator Authentication Methodpassword fileOS auth4. Create Init Parameter File$ORACLE_HOME/dbs/initocm.ora6. Connect to the InstancePa