Getting connect ECONNREFUSED 127.0.0.1:80 when attempting HTTP request
<blockquote>
  <p>I am attempting to make a http request to news.google.com using the native node.js <code>http</code> module.  I am getting the <code>connect ECONNREFUSED 127.0.0.1:80</code> error when I tried the following </p>
</blockquote>

<pre><code>var http = require('http');

var payload = JSON.stringify({
    name: 'John Smith',
    email: 'john.smith@smith.com',
    resume: 'https://drive.google.com/open?id=asgsaegsehsehseh'
});

var options = {
    hostname: 'https://news.google.com',
    path: '/',
    method: 'GET'
};

var httpRequest = http.request(options, function(request, response) {
    console.log('STATUS', response.statusCode);
    response.setEncoding('utf8');

    response.on('data', function(chunk) {
        console.log('BODY:', chunk);
    });

    response.on('end', function() {
        console.log('No more data in response');
    });
});

httpRequest.on('error', function(e) {
    console.log('Error with the request:', e.message);
});

httpRequest.write(payload);
httpRequest.end();
</code></pre>

<p>Why am I getting this error?</p>

<p>I tried using the <code>request</code> npm module.  And it worked!</p>