Try this:
var http = require('http'),
options = {method: 'HEAD', host: 'stackoverflow.com', port: 80, path: "https://stackoverflow.com/"},
req = http.request(options, function(r) {
console.log(JSON.stringify(r.headers));
});
req.end();