incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hahn <m...@boutiquing.com>
Subject Re: using auth with http.request
Date Tue, 01 Mar 2011 22:35:26 GMT
Thanx.  I should have known it was in a header.

Also, I intended to send this to the node.js mailing list.  Sorry for
the trouble.

On Tue, Mar 1, 2011 at 2:33 PM, Zachary Zolton <zachary.zolton@gmail.com> wrote:
> 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 <mark@boutiquing.com> 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.)
>>
>



-- 
Mark Hahn
Website Manager
mark@boutiquing.com
949-229-1012

Mime
View raw message