PhantomJS failing to open HTTPS site

后端 未结 12 1918
梦如初夏
梦如初夏 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

    If someone is using Phantomjs with Sahi the --ignore-ssl-errors option needs to go in your browser_types.xml file. It worked for me.

    
        phantomjs
        PhantomJS
        safari.png
        /usr/local/Cellar/phantomjs/1.9.2/bin/phantomjs
        --ignore-ssl-errors=yes --debug=yes --proxy=localhost:9999 /usr/local/Cellar/phantomjs/phantom-sahi.js
        "PhantomJS"
        100
        true
    
    

提交回复
热议问题