mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-04 19:59:20 +00:00
Update HAR: 禁漫天堂 (#809)
Co-authored-by: DreamAvalon <DreamAvalon@users.noreply.github.com>
This commit is contained in:
parent
e94623e18c
commit
5e89306760
69
18comic.har
69
18comic.har
|
@ -220,6 +220,11 @@
|
|||
"name": "status",
|
||||
"re": ".+",
|
||||
"from": "status"
|
||||
},
|
||||
{
|
||||
"name": "location",
|
||||
"re": ".+",
|
||||
"from": "header-location"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -279,7 +284,69 @@
|
|||
"data": ""
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": []
|
||||
"success_asserts": [],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "判断条件成立",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "{% if int(status)==301 %}",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": ""
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "jmUrl",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "api://util/string/replace",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": "r=json&p=&s=&t={{location}}"
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
},
|
||||
{
|
||||
"re": "\"状态\": \"OK\"",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "jmUrl",
|
||||
"re": "\"处理后字符串\": \"(.*)\"",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "判断块结束",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "{% endif %}",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": ""
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": []
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user