Skip to content

Instantly share code, notes, and snippets.

@tonistiigi
Created December 6, 2014 11:19
Show Gist options
  • Save tonistiigi/7d71283a4a72876c334e to your computer and use it in GitHub Desktop.
Save tonistiigi/7d71283a4a72876c334e to your computer and use it in GitHub Desktop.
pangalink.net phantomjs ssl
% phantomjs --debug=true --ignore-ssl-errors=true --ssl-protocol=TLSv1 t.js
2014-12-06T13:17:26 [DEBUG] CookieJar - Created but will not store cookies (use option '--cookies-file=<filename>' to enable persisten cookie storage)
2014-12-06T13:17:26 [DEBUG] Phantom - execute: Configuration
2014-12-06T13:17:26 [DEBUG] 0 objectName : ""
2014-12-06T13:17:26 [DEBUG] 1 cookiesFile : ""
2014-12-06T13:17:26 [DEBUG] 2 diskCacheEnabled : "false"
2014-12-06T13:17:26 [DEBUG] 3 maxDiskCacheSize : "-1"
2014-12-06T13:17:26 [DEBUG] 4 ignoreSslErrors : "true"
2014-12-06T13:17:26 [DEBUG] 5 localToRemoteUrlAccessEnabled : "false"
2014-12-06T13:17:26 [DEBUG] 6 outputEncoding : "UTF-8"
2014-12-06T13:17:26 [DEBUG] 7 proxyType : "http"
2014-12-06T13:17:26 [DEBUG] 8 proxy : ":1080"
2014-12-06T13:17:26 [DEBUG] 9 proxyAuth : ":"
2014-12-06T13:17:26 [DEBUG] 10 scriptEncoding : "UTF-8"
2014-12-06T13:17:26 [DEBUG] 11 webSecurityEnabled : "true"
2014-12-06T13:17:26 [DEBUG] 12 offlineStoragePath : ""
2014-12-06T13:17:26 [DEBUG] 13 offlineStorageDefaultQuota : "-1"
2014-12-06T13:17:26 [DEBUG] 14 printDebugMessages : "true"
2014-12-06T13:17:26 [DEBUG] 15 javascriptCanOpenWindows : "true"
2014-12-06T13:17:26 [DEBUG] 16 javascriptCanCloseWindows : "true"
2014-12-06T13:17:26 [DEBUG] 17 sslProtocol : "tlsv1"
2014-12-06T13:17:26 [DEBUG] 18 sslCertificatesPath : ""
2014-12-06T13:17:26 [DEBUG] 19 webdriver : ":"
2014-12-06T13:17:26 [DEBUG] 20 webdriverLogFile : ""
2014-12-06T13:17:26 [DEBUG] 21 webdriverLogLevel : "INFO"
2014-12-06T13:17:26 [DEBUG] 22 webdriverSeleniumGridHub : ""
2014-12-06T13:17:26 [DEBUG] Phantom - execute: Script & Arguments
2014-12-06T13:17:26 [DEBUG] script: "t.js"
2014-12-06T13:17:26 [DEBUG] Phantom - execute: Starting normal mode
2014-12-06T13:17:26 [DEBUG] WebPage - setupFrame ""
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/fs.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/system.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/_coffee-script.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/package.json" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/coffee-script.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./lexer.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/././rewriter.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/././helpers.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./parser.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./helpers.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./nodes.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/././scope.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./././helpers.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/././lexer.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/../coffee-script/./lib/coffee-script/./././rewriter.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/webpage.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] WebPage - updateLoadingProgress: 10
2014-12-06T13:17:26 [DEBUG] Network - Resource request error: 6 ( "SSL handshake failed" ) URL: "https://pangalink.net/"
2014-12-06T13:17:26 [DEBUG] WebPage - updateLoadingProgress: 100
data <html><head></head><body></body></html>
2014-12-06T13:17:26 [DEBUG] WebPage - setupFrame ""
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/fs.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/system.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/_coffee-script.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/webpage.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] WebPage - updateLoadingProgress: 10
2014-12-06T13:17:26 [DEBUG] WebPage - setupFrame ""
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/fs.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/system.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/_coffee-script.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] FileSystem - _open: ":/modules/webpage.js" QMap(("mode", QVariant(QString, "r") ) )
2014-12-06T13:17:26 [DEBUG] WebPage - updateLoadingProgress: 100
2014-12-06T13:17:26 [DEBUG] WebPage - updateLoadingProgress: 10
2014-12-06T13:17:26 [DEBUG] WebPage - updateLoadingProgress: 100
2014-12-06T13:17:26 [DEBUG] WebPage - setupFrame ""
2014-12-06T13:17:26 [DEBUG] WebPage - setupFrame ""
var page = require('webpage').create();
page.open('https://pangalink.net', function() {
console.log("data",page.content)
phantom.exit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment