【问题标题】:Can chrome WebRequest API monitor the http request?chrome WebRequest API可以监控http请求吗?
【发布时间】:2017-07-16 16:10:19
【问题描述】:

我想监控从我的 chrome 浏览器发送的所有 http 请求,并将所有 http 请求收集到另一台服务器。

我看过This questionThese examples,但不知道如何获取请求的内容。

例如,当我在我的 chrome 浏览器中使用此 chrome 扩展程序浏览 google.com 时,此扩展程序将向另一台收集它的服务器发送以下内容:

GET http://www.google.com/ HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: zh-CN
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
Accept-Encoding: gzip, deflate
Proxy-Connection: Keep-Alive
Host: www.google.com
Pragma: no-cache
Cookie: blabla...

我无法找到来自here的所有请求的内容,可以吗?

【问题讨论】:

    标签: google-chrome google-chrome-extension xmlhttprequest webrequest


    【解决方案1】:

    抱歉,目前不可能。你能得到的只是标题。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-12-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-14
    • 1970-01-01
    相关资源
    最近更新 更多