Created
December 19, 2013 07:10
-
-
Save olayinkam/8035489 to your computer and use it in GitHub Desktop.
HTTPS requests result in UNABLE_TO_VERIFY_LEAF_SIGNATURE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require("https"); | |
var curaUrl = "https://packages.curasystems.com/packages/datepicker-for-angular?version=0.0.2"; | |
var googleUrl = "https://google.de"; | |
var options = { | |
strictSSL: false | |
}; | |
hyperquest(curaUrl, options).pipe(process.stdout); | |
//hyperquest(googleUrl, options).pipe(process.stdout); | |
var options = { | |
uri: 'https://packages.curasystems.com/packages/datepicker-for-angular?version=0.0.2', | |
hostname: 'packages.curasystems.com', | |
port: 443, | |
path: '/packages/datepicker-for-angular', | |
method: 'GET', | |
rejectUnauthorized: false | |
}; | |
/* | |
var req = https.request(options, function(res) { | |
console.log(res.statusCode); | |
res.on('data', function(d) { | |
process.stdout.write(d); | |
}); | |
}); | |
req.end(); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment