Run phantomjs with --ignore-ssl-errors=true from casperjs

前端 未结 2 1552
囚心锁ツ
囚心锁ツ 2020-12-11 01:05

I have a problem with https page. Page is completly ok, it exist but phantomjs tell me something else: \'loading resource failed with status fail\'. I read about it for a wh

2条回答
  •  佛祖请我去吃肉
    2020-12-11 01:07

    As per https://casperjs.readthedocs.org/en/latest/cli.html#casperjs-native-options

    Last but not least, you can still use all PhantomJS standard CLI options as you would do with any other phantomjs script:

    $ casperjs --web-security=no --cookies-file=/tmp/mycookies.txt myscript.js

    So, I guess, it would be

    casperjs --ignore-ssl-errors=true yourjsapp.js 
    

提交回复
热议问题