title: 596 Service not found while using ESPN API
body: <p>I am using this API to consume a ESPN API:</p>
  
  <pre><code>http://api.espn.com/v1/now?apikey=d4skkma8kt2ac8tqbusz38w6
  </code></pre>
  
  <p>In Node.js, using <code>node-curl</code> library, my snippet looks like this:</p>
  
  <pre><code>var Curl = require('node-curl/lib/Curl')
  curl.setopt('URL', url);
  curl.setopt('CONNECTTIMEOUT', 2);
  
  curl.on('data', function(chunk) {
     console.log(chunk);
  });
  </code></pre>
  
  <p>But everytime when I run this code I keep on getting response as:</p>
  
  <pre><code>&lt;h1&gt;596 Service Not Found&lt;/h1&gt;
  </code></pre>
  
  <p>Strange is, same URL if I hit from the browser I get the correct response so URL is not invalid. This happens only if I try to call from Node.js. Can anyone guide me how to resolve this error? I tried encoding/decoding url, still I get same response.</p>
  
  <p>Also basically I am avoiding any vendor specific libraries as much as possible, since we should have generic api calling framework</p>