I need to make REST calls to Sync Gateway using Basic Auth and can not get 
it to work. Just trying to use curl for now.

Here is my curl:

curl -X GET -H "Authorization: Basic dG9kZGZyZWVzZTpjd2Zjd2Y=" -H 
"Content-Type: application/json" 
https://db.mydb.com:4984/mydb/7E28B6F9-0D49-4452-9E7F-8B8D5F2574E7


where dG9kZGZyZWVzZTpjd2Zjd2Y= is a base64 encode of username:password


The response I get is:


{"error":"Forbidden","reason":"forbidden"}


I know that the username and password are correctly defined in the SG.


Am I missing something here?


Todd

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/0e667713-1916-4744-8f0e-a7393c5c2f89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to