title: Not able to do http requests within azure function
body: <p>I'm testing the new <a href="https://azure.microsoft.com/en-us/blog/introducing-azure-functions/" rel="nofollow noreferrer">Azure Function</a> service.</p>
  
  <p>I've installed the <a href="https://www.npmjs.com/package/request" rel="nofollow noreferrer"><code>request</code></a> npm library, but it kind of looks like any requests are being blocked some how.</p>
  
  <p>This is my small function:</p>
  
  <pre><code>var request = require('request');
  
  module.exports = function(context, req) {
      context.log('function triggered');
      request('http://www.db.no/', function(error, response, body) {
         context.log("inside request callback");
         context.done(); 
      });
  };
  </code></pre>
  
  <p>When triggering the function, I get the following logs:</p>
  
  <pre><code>2016-06-23T21:59:36  Welcome, you are now connected to log-streaming service.
  2016-06-23T21:59:39.185 Function started (Id=774d5763-d279-4838-9344-e55a0fcbd858)
  2016-06-23T21:59:39.716 function triggered
  </code></pre>
  
  <p>but there it stops. 
  <a href="https://i.stack.imgur.com/HLCmt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HLCmt.png" alt="function never ends"></a></p>
  
  <p>The function never ends. The text <code>inside request callback</code> never shows up, and the <code>cancel</code> button remains enabled. </p>
  
  <p>Are there some limitations here that I don't know about?
  Or am I doing something wrong?</p>