title: Get Response URL from GET Request
body: <p>Using the request node library to make GET requests and and wondering how  to grab the URL from the response returned.</p>
  
  <p>Something like</p>
  
  <pre><code>var request = require('request');
  request('http://www.somewebsite.com', function (error, response, body) {
    if (!error &amp;&amp; response.statusCode == 200) {
      console.log(body) // grab the url here
    }
  })
  </code></pre>
  
  <p>assuming the response returned is not www.somewebsite.com but a redirect.</p>