title: GET request from server controller using MEAN stack
body: <p>I'm using MEAN stack with MeanJs. The thing is, I have a task that requires calling a GET request from the server side (Expressjs) to another server (with a different domain name).</p>
  
  <p>The code in the client side (AngularJs) calls:</p>
  
  <pre><code>$scope.getWorkflow = function() {
      $http.get('/ezee', $scope.credentials).success(function(response) {
              console.log(response.message);
          }).error(function(response) {
              console.log('error');
          });
  };
  </code></pre>
  
  <p>And the corresponding server controller function is:</p>
  
  <pre><code>exports.list = function(req, res) {
     req.get('http://ezslave.io', function(q, r){
         res.json({message: r.message}); // just to test
     });
  };
  </code></pre>
  
  <p>Obviously, the code below doesn't work. I'm unsure about how to make a GET request from that <code>list</code> function. Am I supposed to use ExpressJs or pure NodeJs for this? And how to get the correct library loaded?</p>