是否可以使用扩展程序监控 Chrome 中的 HTTP 流量? [英] Is it possible to monitor HTTP Traffic in Chrome using an extension?

查看:27
本文介绍了是否可以使用扩展程序监控 Chrome 中的 HTTP 流量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写一个 Chrome 扩展程序,它需要监视 HTTP 流量以检查是否请求了特定域,然后基于此执行其他操作.

I am attempting to write a Chrome extension that needs to watch HTTP traffic to check if a specific domain is requested and then do other stuff based on that.

如果可能,我想将其全部保留为单个扩展,所以不能使用 Fiddler 等.我知道 FireFox 可以像在 HttpFox 中那样做到这一点,但我不确定 Chrome 中是否允许这样做.

I want to keep it all as a single extension if possible, so can't use Fiddler etc. I know FireFox can do this as it's done in HttpFox, but am not sure if this is allowed in Chrome.

谢谢.

推荐答案

也许这就是您要找的:http://code.google.com/chrome/extensions/主干/experimental.webRequest.html#examples

这篇关于是否可以使用扩展程序监控 Chrome 中的 HTTP 流量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆