美文网首页
_websocktlog

_websocktlog

作者: dittoyy3991 | 来源:发表于2017-10-04 11:21 被阅读11次

___之前想弄websocket需要看到相关log
打开Fiddler,点开菜单栏的Rules,选择Customize Rules...
这时会打开CustomRules.js文件,在class Handlers中加入以下代码
static function OnWebSocketMessage(oMsg: WebSocketMessage) {
// Log Message to the LOG tab
FiddlerApplication.Log.LogString(oMsg.ToString());
}


chardet查看文件编码格式

coding:utf-8

import chardet

for i in ['abc123','中国']:
print i,chardet.detect(i)

相关文章

  • _websocktlog

    ___之前想弄websocket需要看到相关log打开Fiddler,点开菜单栏的Rules,选择Customiz...

网友评论

      本文标题:_websocktlog

      本文链接:https://www.haomeiwen.com/subject/lvwsjxtx.html