I would like to access the request body of HTTP POST
requests in the callback registered with onResourceRequested
(I didn't find it in the documentation).
I would like to do something like this:
page.onResourceRequested = function(requestData, networkRequest) {
var body = networkRequest.body // how to do that ?
console.log(body)
}
How can I access the body of the request in the onResourceRequested
callback ?