Version 1
[yaffs-website] / vendor / jcalderonzumba / gastonjs / docs / api / commands / cookies / set_cookie.md
diff --git a/vendor/jcalderonzumba/gastonjs/docs/api/commands/cookies/set_cookie.md b/vendor/jcalderonzumba/gastonjs/docs/api/commands/cookies/set_cookie.md
new file mode 100644 (file)
index 0000000..148855c
--- /dev/null
@@ -0,0 +1,27 @@
+set_cookie
+===========
+Command to add a Cookie to PhantomJS CookieJar.
+
+Returns `true` if cookie was successfully added, `false` otherwise
+##Set a cookie request
+```json
+{
+    "name": "set_cookie",
+    "args": [
+        {
+            "name": "mycookie",
+            "value": "myvalue",
+            "path": "/",
+            "domain": "gastonjs.readthedocs.org"
+        }
+    ]
+}
+```
+##Set a cookie response
+```json
+{
+    "response": true
+}
+```
+
+For more information on how the Cookie JSON object should be check [addCookie](http://phantomjs.org/api/phantom/method/add-cookie.html) in PhantomJS documentation