变量提取_响应header的提取和断言
开发中
POST
/mock/v1/login.json
最后修改时间:2023-01-12 12:51:52
责任人:未设置
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://m1.apifoxmock.com/m1/1748827-0-default/mock/v1/login.json?q_on_gp=&query_same_1=query_same_1_gp&q_on_gp_request_off=&glo_qparam_use_glo={{id_glo}}&glo_qparam_use_env={{id_env}}&glo_qparam_use_prior={{priority_env}}' \
--header 'Host: s2.meijiabang.cn' \
--header 'X-App-Id: 1' \
--header 'User-Agent: Meijiabang/7.2.0 (iPhone; iOS 14.4.1; Scale/2.0)' \
--header 'X-Device-Id: YC4ce7y3rHoDANL0nxf6FUGN' \
--header 'X-Client-Id: 101' \
--header 'X-Debug-Version: 2106081522' \
--header 'X-Release-Version: 7.2.0' \
--header 'X-Signature: UTc6xgp8G6Q0uqcbCRoCzENKMVE%3D' \
--header 'Accept-Language: zh-cn' \
--header 'X-Release-Platform: iPhone' \
--header 'X-User-Id: 0' \
--header 'X-Signature-Nonce: EZc5YdFXlmqQ0fv6KAL2qDFGsojbQeg' \
--header 'Accept: */*' \
--header 'X-Signature-AccessKeyId: kcZ9geiOu4fTcL5E' \
--header 'X-Signature-Timestamp: 1624436095.999237' \
--header 'h_on_gp;' \
--header 'header_same_1: header_same_1_gp' \
--header 'plat-form: {{header}}' \
--header 'h_on_gp_request_off;' \
--header 'glo_hparam_use_glo: {{id_glo}}' \
--header 'glo_hparam_use_env: {{id_env}}' \
--header 'glo_hparam_use_prior: {{priority_env}}' \
--header 'header_long: l=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmnl=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmn=end' \
--header 'Cookie: c_on_gp=;c_on_gp_request_off=;c_on_gp=c_on_gp_value;cookie_same_1=cookie_same_1_gp;cookie_long=l=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmn;c1=cookieInGlobalCookie;c_on_gp_request_off=c_on_gp_request_off_value;glo_cparam_use_glo={{id_glo}};glo_cparam_use_env={{id_env}};glo_cparam_use_prior={{priority_env}};c1=cookieInGlobalHeader' \
--header 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
--data-urlencode 'account=+86 13580478329' \
--data-urlencode 'fields=uid,is_admin,nickname,phone,identity,avatar.s(187|webp|0),shop_authentication_status,access_token,expired_date' \
--data-urlencode 'password=123456' \
--data-urlencode 'type=password' \
--data-urlencode 'b_on_gp=' \
--data-urlencode 'body_same_1=body_same_1_gp' \
--data-urlencode 'test=000' \
--data-urlencode 'b_on_gp_request_off=' \
--data-urlencode 'glo_bparam_use_glo={{id_glo}}' \
--data-urlencode 'glo_bparam_use_env={{id_env}}' \
--data-urlencode 'glo_bparam_use_prior={{priority_env}}'
响应示例响应示例
{
"error_code": 0,
"error_message": "string",
"error_description": null,
"data": {
"is_admin": 0,
"phone": "string",
"identity": 0,
"avatar": {
"s": {
"url": "string",
"width": 0,
"height": 0
}
},
"shop_authentication_status": {
"status": "string",
"desc": "string"
},
"access_token": "string",
"expired_date": "string",
"uid": 0,
"nickname": "string"
},
"extra": null,
"emumock": "susie"
}
请求参数
Query 参数
q_on_gp
string
必需
默认值:
q_on_gp_value
query_same_1
string
可选
默认值:
query_same_1_gp
q_on_gp_request_off
string
必需
默认值:
q_on_gp_request_off_value
glo_qparam_use_glo
string
可选
默认值:
{{id_glo}}
glo_qparam_use_env
string
可选
默认值:
{{id_env}}
glo_qparam_use_prior
string
可选
默认值:
{{priority_env}}
Header 参数
Host
必需
示例值:
s2.meijiabang.cn
X-App-Id
必需
示例值:
1
User-Agent
必需
示例值:
Meijiabang/7.2.0 (iPhone; iOS 14.4.1; Scale/2.0)
Cookie
必需
示例值:
ekdf_009e3e07=602eb6d240200dcbd53ff4c3b61bc79c; ekdf_ddc45955=982cecb1358ec4f662221e8e3682f6ef; g0yk_6c66_think_language=zh-cn; acw_tc=76b20ff916244354847981193e0bed81d11ff982eb4f62b3de488e681f8841
X-Device-Id
必需
示例值:
YC4ce7y3rHoDANL0nxf6FUGN
X-Client-Id
必需
示例值:
101
X-Debug-Version
必需
示例值:
2106081522
X-Release-Version
必需
示例值:
7.2.0
X-Signature
必需
示例值:
UTc6xgp8G6Q0uqcbCRoCzENKMVE%3D
Accept-Language
必需
示例值:
zh-cn
X-Release-Platform
必需
示例值:
iPhone
X-User-Id
必需
示例值:
0
X-Signature-Nonce
必 需
示例值:
EZc5YdFXlmqQ0fv6KAL2qDFGsojbQeg
Accept
必需
示例值:
*/*
Content-Type
必需
示例值:
application/x-www-form-urlencoded; charset=utf-8
X-Signature-AccessKeyId
必需
示例值:
kcZ9geiOu4fTcL5E
X-Signature-Timestamp
必需
示例值:
1624436095.999237
h_on_gp
string
必需
默认值:
h_on_gp_value
header_same_1
string
可选
默认值:
header_same_1_gp
plat-form
string
可选
默认值:
{{header}}
h_on_gp_request_off
string
必需
默认值:
h_on_gp_case_off_value
glo_hparam_use_glo
string
可选
默认值:
{{id_glo}}
glo_hparam_use_env
string
可选
默认值:
{{id_env}}
glo_hparam_use_prior
string
可选
默认值:
{{priority_env}}
header_long
string
可选
默认值:
l=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmnl=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmn=end
Cookie 参数
c_on_gp
string
必需
默认值:
c_on_gp_value
cookie_same_1
string
可选
默认值:
cookie_same_1_gp
cookie_long
string
可选
默认值:
l=eBO-G2Fng9CH5uxF2Ofahurza77OSIOYYuPzaNbMiOCP_Xfp5gxlW6pndVL9C31Vh6DWR3-82bJHBeYBcIfEiOp2AJ-YF8Mmn
c1
string
勿改-测试
默认值:
cookieInGlobalCookie
c_on_gp_request_off
string
必需
默认值:
c_on_gp_request_off_value
glo_cparam_use_glo
string
可选
默认值:
{{id_glo}}
glo_cparam_use_env
string
可选
默认值:
{{id_env}}
glo_cparam_use_prior
string
可选
默认值:
{{priority_env}}
Body 参数application/x-www-form-urlencoded
account
请求参数说明
示例值:
+86 13580478329
fields
必需
示例值:
uid,is_admin,nickname,phone,identity,avatar.s(187|webp|0),shop_authentication_status,access_token,expired_date
password
必需
示例值:
123456
type
必需
示例值:
password
b_on_gp
string
必需
默认值:
b_on_gp_value
body_same_1
string
优先级
默认值:
body_same_1_gp
test
string
可选
默认值:
000
b_on_gp_request_off
string
必需
默认值:
b_on_gp_request_off_value
glo_bparam_use_glo
string
可选
默认值:
{{id_glo}}
glo_bparam_use_env
string
可选
默认值:
{{id_env}}
glo_bparam_use_prior
string
可选
默认值:
{{priority_env}}
返回响应

修改于 2023-01-12 12:51:52