Opening https with phantomjs on OpenShift -
i using openshift, , using following code open http url phantomjs (in order take screenshot), http works fine https fails status code null. know specific question , problem openshift looks openshift want users ask questions on now.
page.open(address, function (status) { if (status !== 'success') { console.log('unable load address!'); phantom.exit(); } else { window.settimeout(function () { page.render(output); phantom.exit(); }, 200); } });
i gave on making work on openshift , moved heroku , same code on heroku worked charm.
Comments
Post a Comment