Last active
August 29, 2015 14:07
-
-
Save alanhoff/f8c0700ddea7728a8781 to your computer and use it in GitHub Desktop.
request.js sem veirificação de SSL
This file contains 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 request = require('request'); | |
var options = { | |
url: 'https://portaldocidadao.saude.gov.br/portalcidadao/validaNumeroCNS.htm', | |
proxy: 'http://huehuebr.com.br', | |
strictSSL: false | |
}; | |
request(options, function (err, res, body) { | |
if(err) | |
throw err; | |
console.log('Página retornou com status %s', res.statusCode); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment