Created
September 27, 2012 09:55
-
-
Save pawel-dubiel/3793211 to your computer and use it in GitHub Desktop.
#Nodejs ( #https, #request, #443, #HEADERS )
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 https = require('https'); | |
var options = {method: 'HEAD', host: 'user.tent.is', path: '/'}; | |
var req = https.request(options, function(res) { | |
console.log(JSON.stringify(res.headers)); | |
} | |
); | |
req.end(); | |
req.on('error', function(e) { | |
console.error(e); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment