I started a session using the sync gateway admin port and received the following response:
HTTP/1.1 200 OK
Content-Length: 135
Content-Type: application/json
Server: Couchbase Sync Gateway/1.1.0
Date: Tue, 21 Jul 2015 04:06:13 GMT
{"session_id":"04eed361dbe9461f9c6f341af25685a30debaf8c","expires":"2015-07-22T04:06:13.232131449Z","cookie_name":"SyncGatewaySession"}
Now that I have a session, I want to get a document. So I follow this up with:
curl -i -X GET \
-H "Content-Type:application/json" \
-H "Cookie:SyncGatewaySession=04eed361dbe9461f9c6f341af25685a30debaf8c" \
'http://104.154.90.14:4984/{db}/doc1'
And I get 403 forbidden…
What’s the proper way to share my session id in subsequent requests?
Guest is disabled.
Kind regards,
David