Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 010EA1082F for ; Thu, 14 Nov 2013 02:36:56 +0000 (UTC) Received: (qmail 16351 invoked by uid 500); 14 Nov 2013 02:36:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 16313 invoked by uid 500); 14 Nov 2013 02:36:54 -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 16305 invoked by uid 99); 14 Nov 2013 02:36:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Nov 2013 02:36:54 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_NOVOWEL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of siriele2x3@gmail.com designates 209.85.128.43 as permitted sender) Received: from [209.85.128.43] (HELO mail-qe0-f43.google.com) (209.85.128.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Nov 2013 02:36:50 +0000 Received: by mail-qe0-f43.google.com with SMTP id gc15so878688qeb.30 for ; Wed, 13 Nov 2013 18:36:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ryoo5GfT4HPdaEAD8iTM1P9rm9GEQP2eo4XddodKqLs=; b=VfQjwc+jr9js5SYO/gxl4jadDjjmXW6Yh/F7+dWvGtHob9VQDwUH6yUmoRotJTcx4r 3J+HWOxZggO1ARkDNjhcFMsCkGH4OGvlvZtAdBurhNy7KPeXi+uEGO3unsBRsFgiiD5M K4E9Qe0s0HnapElc+VJy1Yu1pRnmOW/EIk/ZuU6M3mEnE194jbcWbihMu2Qe4aAUkFqC MTvYZ1Hq1eBmb3jjCLAgSTrMt8pjLPC6Laox+/kmrLBoYnu10X1YyF0Y4u8od1FuHNQF J7wKUvTtbgXOPrZ+nqSUUzR6TSzpUq0NNTogAgyOnnZWTFQpThRhcEXE+KcPxN4W7e9x vqRA== MIME-Version: 1.0 X-Received: by 10.224.54.66 with SMTP id p2mr73439047qag.87.1384396590045; Wed, 13 Nov 2013 18:36:30 -0800 (PST) Received: by 10.96.12.101 with HTTP; Wed, 13 Nov 2013 18:36:29 -0800 (PST) Received: by 10.96.12.101 with HTTP; Wed, 13 Nov 2013 18:36:29 -0800 (PST) In-Reply-To: References: <1FED1368-4B3F-4F69-BA3B-2CCB507A4911@couchbase.com> Date: Wed, 13 Nov 2013 18:36:29 -0800 Message-ID: Subject: Re: CouchDB: @ in username messing up curl From: Stanley Iriele To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001a1132ee54fa93cd04eb19f2a3 X-Virus-Checked: Checked by ClamAV on apache.org --001a1132ee54fa93cd04eb19f2a3 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Yeah that's a funny case...I usually avoid doing that for that specific reason... Why not base64 encode it and send the file in a formatted header yourself instead of relying on curl?... On Nov 13, 2013 6:32 PM, "Hank Knight" wrote: > The username is > nlbdmobz@sharklasers.com > > And the password is > password123 > > Please test it: > https://zqzqzqz555.couchappy.com/ > > Putting the password in the middle of the username does NOT work. > > The real question relates to escaping the @. > > Believe me, I have spent quite a bit of time Googling this and found > nothing. > > > > > > On Wed, Nov 13, 2013 at 10:15 PM, Jens Alfke wrote: > > > > On Nov 13, 2013, at 6:03 PM, Hank Knight wrote: > > > >> What is wrong with this? > >> > >> curl -kX -u nlbdmobz@sharklasers.com:password123 POST \ > >> https://zqzqzqz555.couchappy.com/urls \ > >> -d "{}" -H "Content-Type: application/json" > >> > >> I get an error: > >> curl: (6) Couldn't resolve host 'sharklasers.com:password123' > > > > Wrong syntax. It should be nlbdmobz:password123@sharklasers.com . > > > > The syntax is weird, but it=92s really not hard to find out how it work= s. > Try googling for [url password syntax] and the top few hits all look like > good info. > > > > =97Jens > --001a1132ee54fa93cd04eb19f2a3--