Last active
May 18, 2017 17:36
-
-
Save pascencio/c7048d19e01e4ac91e3a752c7080983d to your computer and use it in GitHub Desktop.
Make a Request to a site with self signed certificate using Unirest and Node.js
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 unirest = require('unirest'); | |
unirest | |
.get('https://some.selfsigned.cert.domain.com') | |
.strictSSL(false) | |
.end(function(response){ | |
console.log(response.body); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment