77d97b24c1f57b42525670c48b9be9dde909fa7c
[yaffs-website] / api / commands / cookies / cookies.md
1 cookies
2 =========
3 Command to get the visible cookies in the current page.
4 ##Request
5 ```json
6 {
7     "name": "cookies",
8     "args": []
9 }
10 ```
11 ##Response
12 If the page you are visiting sends cookies you will get something like:
13 ```json
14 {
15     "response": [
16         {
17             "domain": "127.0.0.1",
18             "httponly": true,
19             "name": "b_cookie",
20             "path": "/",
21             "secure": false,
22             "value": "b_has_value"
23         },
24         {
25             "domain": "127.0.0.1",
26             "httponly": true,
27             "name": "a_cookie",
28             "path": "/",
29             "secure": false,
30             "value": "a_has_value"
31         }
32     ]
33 }
34 ```