How to get the binary of the image requested by CasperJS?
问题 Code: casper.on("resource.received", function (response) { if (response.url.indexOf('checkcode') != -1) { this.log('response: ' + JSON.stringify(response), 'debug'); } }) Output: [debug] [phantom] [2016-04-21T01:36:46.007Z] response: {"body":"","bodySize":1847,"contentType":"image/png","headers":[{"name":"Server","value":"Tengine/2.1.0"},{"name":"Date","value":"Thu, 21 Apr 2016 01:36:45 GMT"},{"name":"Content-Type","value":"image/png"},{"name":"Content-Length","value":"1847"},{"name":