title: How do I authenticate with couchdb using couchbeam?
body: <p>I'm trying to create a database in couchdb, which has an admin user/password set, using couchbeam. I've set my credentials in couchdb's local.ini file and restarted. My code to create a db is:</p>
  
  <pre><code>couchbeam:start(),
  Params = #couchdb_params{username="test" ,password="pass"},
  Connection = couchbeam_server:start_connection_link(Params),
  Db = couchbeam_db:create(Connection, "testdb")
  </code></pre>
  
  <p>At this point Db = {unknown_error, 401}. Am I doing something wrong here? The 401 seems to indicate an authentication error.</p>
  
  <p>My username/password are ok as this works from the command line:</p>
  
  <pre><code>$curl -X PUT http://test:pass@127.0.0.1:5984/testdb
  {"ok":true}
  </code></pre>
  
  <p>I'm running Ubuntu 9.10, couchdb 0.10.0. couchbeam 0.4.1, Erlang R1301. Any ideas?</p>