title: Make http request within node js routes
body: <p>I am building a slideshow that pulls pictures with a certain tag on instagram. The Instagram API requires me to make a call to their auth URL to receive an access token. Using node js and express I built out the backend like so:</p>
  
  <pre><code>var express = require('express');
  var app = express();
  app.use(express.static('public'));
  
  app.listen(4000,function(){
     console.log("Listening to app on localhost 4000"); 
  })
  
  app.get('/',function(req,res){
      1. make call to Instagram authorization URL:
      https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&amp;redirect_uri=http://localhost:4000&amp;response_type=code
  
      2. URL will be redirected with access code parameter
  
      3. Use access code to make POST request to receive access token to be able to make GET requests.
  
  })
  </code></pre>
  
  <p>My question is how do I make a request to visit that url within NodeJS/Express? Is it just a normal http.request()? </p>
  
  <p>I don't want to user to go through the redirect process so that's why I want to put it in Node. I'm following these instructions <a href="https://www.instagram.com/developer/authentication/" rel="nofollow">https://www.instagram.com/developer/authentication/</a></p>