title: Specify port number in HTTP request (node.js)
body: <p>Is it possible to specify a port number when making at HTTP request using the request module? I'm not seeing anything about this in the documentation:</p>
  
  <pre><code>var request = require('request');
  
  // this works
  request({
    method: 'GET',
    url: 'http://example.com'
  }, function(error, response, body) {
    if (error) console.log(error);
    console.log(body);
  });
  
  // this does not work
  request({
    method: 'GET',
    url: 'http://example.com:10080'
  }, function(error, response, body) {
    // ...
  });
  </code></pre>
  
  <p>Additionally, when I run the second version, absolutely nothing happens in my program (almost like the request was never made).</p>
  
  <p>I also know that I can specify a port number when making a request using the core <code>http</code> module. Why is the not an option in the request module?</p>
  
  <p>EDIT: I should have mentioned this before, but I am running this application on Heroku.</p>
  
  <p>When I run the request locally (using the request module) I am able to specify the port number, and get a successful callback. </p>
  
  <p>When I run the request from Heroku, no callback is fired, and nginx shows no record of the request.</p>
  
  <p>Am I crazy? Is there some reason Heroku is preventing me from making an outbound HTTP request to a specific port number? </p>