Can chrome WebRequest API monitor the http request?

♀尐吖头ヾ 提交于 2019-12-22 12:20:41

问题


I want to monitor all the http request send from my chrome browser, and collect all the http request to another server.

I have read This question and These examples, but I don't know how to get the content of the request.

For example, when I browse google.com in my chrome browser with this chrome extension, this extension will send the following the another server which will collect it:

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...

I can not find how to get the content of all the requests from here, is that possible?


回答1:


Sorry, it's not possible at the moment. All you can get is headers.



来源:https://stackoverflow.com/questions/7819463/can-chrome-webrequest-api-monitor-the-http-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!