You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Mark Hahn <ma...@boutiquing.com> on 2011/03/01 21:19:12 UTC
using auth with http.request
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.)
Re: using auth with http.request
Posted by Mark Hahn <ma...@boutiquing.com>.
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 <za...@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 <ma...@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
Re: using auth with http.request
Posted by Zachary Zolton <za...@gmail.com>.
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 <ma...@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.)
>