title: Node.js request return Error: connect ECONNREFUSED when set options parameter
body: <p>request works fine if I send it with url with required attributes as first parameter but failed each time when trying to send with options object parameter that contains request attributes:</p>
  
  <pre><code>"use strict"
  var https = require('https'),
      request = require('request');
  
  var obj = {
      translate: function(textToTranslate) {
          var options = {
              url: "https://translate.yandex.net/api/v1.5/tr.json/translate",
              qs: {
                  key: process.env.TRANSLATION_APP_TOKEN,
                  lang: "en-ru",
                  text: textToTranslate
              }
          }, translationRequest = https.request(options, function(response) {
              response.on('data', function (chunk) {
                  console.log(JSON.parse(chunk).text[0]);
              });
          });
          console.log(options);
  
          translationRequest.on('error', function (response) {
              console.log(response);
          });
  
          translationRequest.end();
      }
  };
  
  obj.translate("hello");
  </code></pre>
  
  <p>I'm using qs option to pass parameters but tried formData and body but it doesn't work as well.</p>
  
  <p>Thank you for any help</p>