PhantomJS failing to open HTTPS site

后端 未结 12 1910
梦如初夏
梦如初夏 2020-11-22 07:53

I\'m using the following code based on loadspeed.js example to open up a https:// site which requires http server authentication as well.

var page = require(         


        
12条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 08:19

    I tried Fred's and Cameron Tinker's answers, but only --ssl-protocol=any option seem to help me:

    phantomjs --ssl-protocol=any test.js
    

    Also I think it should be way safer to use --ssl-protocol=any as you still are using encryption, but --ignore-ssl-errors=true will ignore (duh) all ssl errors, including malicious ones.

提交回复
热议问题