Skip to content

Instantly share code, notes, and snippets.

@alanhoff
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanhoff/f8c0700ddea7728a8781 to your computer and use it in GitHub Desktop.
Save alanhoff/f8c0700ddea7728a8781 to your computer and use it in GitHub Desktop.
request.js sem veirificação de SSL
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