fiddler 抓取 socket 数据

static function OnBeforeRequest(oSession: Session) { 
    if (oSession.RequestHeaders.ExistsAndContains ("Sec-WebSocket-Extensions", "permessage-deflate")) { oSession.RequestHeaders.Remove ( "Sec-WebSocket-Extensions"); 
    }
}



在 OnBeforeRequest 后面 加上

static function OnWebSocketMessage(oMsg: WebSocketMessage) {
    // Log Message to the LOG tab
    FiddlerApplication.Log.LogString(oMsg.ToString());
}