问题
Every since the sslv3 POODLE bug came out I am unable to use casperjs with the "--engine=slimerjs" option.
Before POODLE I was able to run my casperjs script like this:
casperjs --engine=slimerjs script.js
But after POODLE I needed to also send the "--ssl-protocol=tlsv1" to casperjs. This works without using the slimer option like this:
casperjs --ssl-protocol=tlsv1 script.js
Now if I want to use the slimerjs engine and send the ssl-protocol like this:
casperjs --ssl-protocol=tlsv1 --engine=slimerjs script.js
it fails with:
unknown option --ssl-protocol=tlsv1
How can I use casperjs with slimerjs with the "--ssl-protocol=tlsv1" option?
回答1:
This issue is resolved from SlimerJS 0.9.5 onwards and supports full compatibility with PhantomJS 2 for this case. See this commit.
Previous answer:
The docs say it is unsupported and since SSL is so low-level, there is probably not even a workaround besides waiting for a new version of slimerjs (current version 0.9.3).
–ssl-protocol=[SSLv3|SSLv2|TLSv1|any] Unsupported Firefox supports only the SSL 3 protocol
The bottom line is that SlimerJS is now unusable on all sites that removed SSLv3 support. This is the general SlimerJS issue: Support of SSL options.
来源:https://stackoverflow.com/questions/26530934/unknown-option-when-using-casperjs-with-ssl-protocol-tlsv1-engine-slimerjs