简体   繁体   中英

Does SpookyJS support https web pages?

I'm new to SpookyJS. In the hello.js example which has been provided i tried changing the url

http://en.wikipedia.org/wiki/Spooky_the_Tuff_Little_Ghost

to

https://www.twitter.com/

or

www.facebook.com with https

none of these seem to be opening.

PhantomJS version is 1.9.0

This may be very well related the POODLE problem of PhantomJS. ( Reference ) It is usually fixed by passing --ssl-protocol=tlsv1 and possibly --ignore-ssl-errors=true on the commandline.

Judging by issue #81 , you can do this in SpookyJS:

var spooky = new Spooky({
  capser: {
    logLevel: "debug",
    verbose: true
  },
  child: {
    command: "casper",
    "ssl-protocol": "tlsv1",
    "ignore-ssl-errors": true
  }
});

You may also want to update PhantomJS. This is fixed in 1.9.8 and later, but CasperJS doesn't currently (1.1-beta3) support PhantomJS 2. Either use the master branch of CasperJS which does support PhantomJS 2 or stick to 1.9.8.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM