I’ve just started developing a Google Chrome extension using the chrome.* API. I’m trying to analyse outgoing requests from the browser.
If I run this in my background.html:
chrome.webRequest.onBeforeSendHeaders.addListener(
function (details) {
if (details.method == "POST") {
alert(JSON.stringify(details));
}
},
{ urls: ["<all_urls>"]}
);
I get a notification on each request, but it seems I don’t have access to http post parameters. I get these parameters with an additional content script, but isn’t it possible to access the parameters through the chrome.webRequest object?
This is not possible for now, you can monitor this Chromium issue for updates (click a star in the top-right corner to get email notifications).