title: Connect to Cloudant CouchDB with Node.js?
body: <p>I am trying to connect to my CouchDB database on Cloudant using Node.js.</p>
  
  <p>This worked on the shell:</p>
  
  <pre><code>    curl https://weng:password@weng.cloudant.com/my_app/_all_docs
  </code></pre>
  
  <p>But this node.js code didn't work:</p>
  
  <pre><code>    var couchdb = http.createClient(443, 'weng:password@weng.cloudant.com', true);
      var request = couchdb.request('GET', '/my_app/_all_docs', {
          'Host': 'weng.cloudant.com'
      });
      request.end();
      request.on('response', function (response) {
          response.on('data', function (data) {
              util.print(data);
          });
      });
  </code></pre>
  
  <p>It gave me this data back:</p>
  
  <pre><code>    {"error":"unauthorized","reason":"_reader access is required for this request"}
  </code></pre>
  
  <p>How do I do to list all my databases with Node.js?</p>