In HTTP basic authentication, credentials are specified using headers in the request: http://en.wikipedia.org/wiki/Basic_access_authentication#Example
Many HTTP clients (e.g. curl and web browsers) will parse the username:password out of the URL and set the header for you, but it sounds like your client doesn't do this. BTW, you'll need to specify what programming language you're using so we can give you more prescriptive advice... —Zach On Tue, Mar 1, 2011 at 2:19 PM, Mark Hahn <[email protected]> wrote: > I want to use http.request to access couchdb but I need a URL like > http://user:pwd@localhost:5984/db. How do I do this? When I put > user:pwd@localhost in as the host option I get a domain error. I see > no other way to specify this. > > (I hope this isn't a double post. I've been having email problems.) >
