Can the Chrome WebRequest API track an HTTP request?

I want to track all HTTP request requests from my Chrome browser and collect the entire HTTP request to another server.

I read this question and these examples , but I don’t know how to get the contents of the request.

For example, when I browse google.com in my Chrome browser with this chrome extension, this extension will send the following server that 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’t find how to get the contents of all requests from here , is this possible?

+2
google-chrome google-chrome-extension webrequest
source share
1 answer

Sorry, this is not possible at the moment. All you can get is the headlines.

+1
source

All Articles