Connecting to an SSL website

30 views
Skip to first unread message

Greg Bowler

unread,
Sep 2, 2015, 10:18:45 AM9/2/15
to phantomjs
var page = require('webpage').create();


page.open("https://www.brightflair.com", function(status) {
    if (status !== 'success') {
        console.log('Unable to load the address!', status, this);
        phantom.exit(1);
    } else {
        console.log("DONE!");
        phantom.exit();
    }
}

In the above code *(render.js)*, a simple request to 
https://brightflair.com is made. The success parameter comes back as 
"fail", but I can't work out why.

I have tried running *phantomjs --ssl-protocol=any render.js* but the same 
thing happens.

Any ideas? Thanks.
Reply all
Reply to author
Forward
0 new messages