title: 'Error: connect ECONNREFUSED' When calling http.request
body: <p>I am trying to run the following node code,</p>
  
  <pre><code>function getQuestions() {
      var options = {
          host: 'mysite.com',
          path: '/services/v2/question.json',
          headers: {
              "Content-Type": "application/json",
              "accept": "application/json; charset=UTF-8",
              'Authorization': auth
          }
      };
      http.request(options, function(response) {
          console.log("Everything worked!");
      }).on('error', function(e) {
          console.log('problem with request: ' + e.stack);
      });
  }
  </code></pre>
  
  <p>But it always errors saying...</p>
  
  <pre><code>problem with request: Error: connect ECONNREFUSED
      at errnoException (net.js:905:11)
      at Object.afterConnect [as oncomplete] (net.js:896:19)
  </code></pre>
  
  <p>When I put the same info into Postman it works fine. Is there a way to debug this? </p>
  
  <p><strong>Update</strong></p>
  
  <p>Tried this...</p>
  
  <pre><code>var options = {
          host: "google.com"
  };
  </code></pre>
  
  <p>Same result so something must be wrong in my code. Any ideas?</p>