couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Anderson <sander...@salesforce.com>
Subject Re: CouchDB: @ in username messing up curl
Date Thu, 14 Nov 2013 02:35:49 GMT
You need to percent encode it - @ is %40


On Wed, Nov 13, 2013 at 6:32 PM, Hank Knight <hknight555@gmail.com> 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 <jens@couchbase.com> wrote:
> >
> > On Nov 13, 2013, at 6:03 PM, Hank Knight <hknight555@gmail.com> 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’s really not hard to find out how it works.
> Try googling for [url password syntax] and the top few hits all look like
> good info.
> >
> > —Jens
>



-- 

     Steve

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message