couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: CouchDB: @ in username messing up curl
Date Thu, 14 Nov 2013 02:15:23 GMT

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
Mime
View raw message