phantomjs --version.i use this code
var url = "http://google.com"
var page = require('webpage').create();
page.onResourceReceived = function(response) {
console.log('Receive ' + response.body);
};
page.open(url);
onResourceReceived does not contain the body in the response:
http://phantomjs.org/api/webpage/handler/on-resource-received.html
@thoop how can i get then the data
sadly to see it's empty in response body in onResourceReceived and couldn't change it
this issue has been raised in 2011 https://github.com/ariya/phantomjs/issues/10158 and as the related feature has never worked, I am guessing it never will.
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!
Most helpful comment
@thoop how can i get then the data