Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 94810 invoked from network); 1 Mar 2011 22:34:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Mar 2011 22:34:52 -0000 Received: (qmail 63845 invoked by uid 500); 1 Mar 2011 22:34:50 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 63788 invoked by uid 500); 1 Mar 2011 22:34:50 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 63778 invoked by uid 99); 1 Mar 2011 22:34:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 22:34:50 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of zachary.zolton@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 22:34:45 +0000 Received: by wyf23 with SMTP id 23so6183941wyf.11 for ; Tue, 01 Mar 2011 14:33:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=A+cLnJwDuWyW7skZwVCojeq5zfHfpd8WM3iSXCAHJkU=; b=bi5RvX3Y7F3BlAt7CfsxhLkeRqxFnvAM6yUTalfy2bU++r1cF4bX72QjC/bTo+77t+ zxpQ6i540blVNsYCKP/3NKaFk+nJYfsvqBPabYNQUYb9ziKziQFRyMkh8IQGplewNx+L nUhguasLMOvgoyKX5QynU68QwqYq+44QTxUQE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=ncBBlI1Qa7G/GkVe9hHr4dgEOOWEpA0Wz+p2pXmS+zJHlgMcjtqkw1tAWfAKds/jRm +qdqZzEKtMaZoIbXigQajWG13Vzir6MmvMj8REKYXaL9KFlsi7SpR0wR/YbEsHWqbcNW Y227c7oEG6D8dFK7RPp5su0z4ykg0RvIeGJv8= Received: by 10.227.155.66 with SMTP id r2mr6726018wbw.73.1299018815149; Tue, 01 Mar 2011 14:33:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.154.80 with HTTP; Tue, 1 Mar 2011 14:33:15 -0800 (PST) In-Reply-To: References: From: Zachary Zolton Date: Tue, 1 Mar 2011 16:33:15 -0600 Message-ID: Subject: Re: using auth with http.request To: user@couchdb.apache.org Cc: Mark Hahn Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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... =97Zach On Tue, Mar 1, 2011 at 2:19 PM, Mark Hahn wrote: > I want to use http.request to access couchdb but I need a URL like > http://user:pwd@localhost:5984/db. =A0How do I do this? =A0When I put > user:pwd@localhost in as the host option I get a domain error. =A0I see > no other way to specify this. > > (I hope this isn't a double post. =A0I've been having email problems.) >