resCookies

修改请求的cookie,配置方式:

pattern resCookies://filepath

filepath为Values里面的{key}或者本地文件(如:e:\test\xxxe:/test/xxx/User/username/test/xxx等):

{
    "key1": "value1",
    "key2": "value2",
    "keyN": {
        "value": "value1",
        "maxAge": 60,
        "httpOnly": true,
        "path": "/",
        "secure": true,
        "domain": ".example.com"
    }
}

pattern参见匹配模式,更多模式请参考配置方式,json格式参考操作值

例子:

www.ifeng.com resCookies://{test-resCookies.json}

test-resCookies.json:

{
    "key1": "value1",
    "key2": "value2",
    "keyN": {
        "value": "value1",
        "maxAge": 60,
        "httpOnly": true,
        "path": "/",
        "secure": true,
        "domain": ".example.com"
    }
}

results matching ""

    No results matching ""