set_cookie

Command to add a Cookie to PhantomJS CookieJar.

Returns true if cookie was successfully added, false otherwise

{
    "name": "set_cookie",
    "args": [
        {
            "name": "mycookie",
            "value": "myvalue",
            "path": "/",
            "domain": "gastonjs.readthedocs.org"
        }
    ]
}
{
    "response": true
}

For more information on how the Cookie JSON object should be check addCookie in PhantomJS documentation