1

I am sending a POST request to my local test_db (couchDB database):

POST http://localhost:1970/_session

using the following values in the body request:

x-www-form-urlencoded
name: admin
password: xxxxxx

the request executes correctly but in the response I do not get a cookie:

{
  "ok": true,
  "name": null,
  "roles": [
   "_admin",
   "dbadmin"
  ]
}

do you know why?

Thank you for your help.

Dino
  • 1,307
  • 2
  • 16
  • 47

1 Answers1

0

According to the documentation, the data returned is correct. The cookie is inside the response headers. Here's an example of how to retrieve it with PHP.

Couchdb document screen shot.

Community
  • 1
  • 1
Alexis Côté
  • 3,670
  • 2
  • 14
  • 30