On Nov 13, 2013, at 6:03 PM, Hank Knight <[email protected]> wrote:
> What is wrong with this? > > curl -kX -u [email protected]: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' Sorry, I was confused by the cryptic command line at first and thought you were trying to embed credentials in a URL. Your real problem has nothing to do with the ‘@‘ sign. You’ve stuck the username argument in between the -X flag and the method name that’s supposed to follow it. If you just move the -X and POST next to each other, it works fine: $ curl -k -u [email protected]:password123 -X POST https://zqzqzqz555.couchappy.com/urls -d "{}" -H "Content-Type: application/json" {"ok":true,"id":"2bac0dff04ebbfcbecb1d491e9000dda","rev":"1-967a00dff5e02add41819138abb3284d”} —Jens
