I need to get a frame's HTTP headers programmatically from Javascript. It doesn't need to be portable (I only need it for Chrome) and I don't mind having to add/write a specific extension.
Or, even better and more importantly, I need to have access to all network traffic from and to a specific site programmatically as it happens.
Is there a way to do this? Do I need to write my own extension to make it happen? And if so, can I write the extension in Javascript?
Writing an extension seems to be the only way to go. I could write one and use the chrome.* API like here: https://developer.chrome.com/extensions/devtools_network If writing an extension is the way to go, how would you go about it?