POST 从邮递员 4.2.2 到本地主机中的 couchdb 的请求没有 return cookie
POST request from postman 4.2.2 to couchdb in localhost does not return cookie
我正在向我的本地 test_db(couchDB 数据库)发送一个 POST 请求:
POST http://localhost:1970/_session
在正文请求中使用以下值:
x-www-form-urlencoded
name: admin
password: xxxxxx
请求正确执行,但在响应中我没有收到 cookie:
{
"ok": true,
"name": null,
"roles": [
"_admin",
"dbadmin"
]
}
你知道为什么吗?
感谢您的帮助。
根据documentation, the data returned is correct. The cookie is inside the response headers. Here's an example如何用PHP找回。
我正在向我的本地 test_db(couchDB 数据库)发送一个 POST 请求:
POST http://localhost:1970/_session
在正文请求中使用以下值:
x-www-form-urlencoded
name: admin
password: xxxxxx
请求正确执行,但在响应中我没有收到 cookie:
{
"ok": true,
"name": null,
"roles": [
"_admin",
"dbadmin"
]
}
你知道为什么吗?
感谢您的帮助。
根据documentation, the data returned is correct. The cookie is inside the response headers. Here's an example如何用PHP找回。