|
REQUEST_TOKEN是在request代码中动态生成的,每次跑脚本时该值都不一样,相应脚本以及request和server中内容如下:
web_submit_data("BCDServlet_3",
"Action={URL}",
"Method=POST",
"Referer=",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=CALLTYPE", "Value=AUTH", ENDITEM,
"Name=REQ_TYPE", "Value=GET_TOK", ENDITEM,
"Name=AUTH_TYPE", "Value=CHALLENGE_RESPONSE", ENDITEM,
"Name=USER_ID", "Value={UserID}", ENDITEM,
"Name=LCLANG", "Value=INFENG", ENDITEM,
"Name=SESSION_ID", "Value={SESSION_ID}",
LAST);
//request::CALLTYPE=AUTH&REQ_TYPE=GET_TOK&AUTH_TYPE=CHALLENGE_RESPONSE&USER_ID=ABC01&LCLANG=INFENG&SESSION_ID=58d917828b30b0b384c35cd437dddda6b3cf6365
//response:TWO_FACTOR_AUTH_REQ=N&IS_CHANGE_PWD_REQ=540&IS_LOCAL=CENTRAL&ERROR_CODE=0&SESSION_ID=58d917828b30b0b384c35cd437dddda6b3cf6365&INACTIVITY_TIME_OUT=999&SESSION_KEY=f66a8d166f3de393b407b65ef366c90d50b46f60001bde5a
web_submit_data("BCDServlet_4",
"Action={URL}",
"Method=POST",
"Referer=",
"Snapshot=t9.inf",
"Mode=HTML",
ITEMDATA,
"Name=SESSION_ID", "Value={SESSION_ID}", ENDITEM,
"Name=CALLTYPE", "Value=GET_SRVC_TOK", ENDITEM,
"Name=REQUEST_TOKEN", "Value=af582735846393feacdd5e645cb3eaa314ccb6831a58ce0272b475fefac8bb58e69a8b8e04b78ef02e63a2dd1685c6a74253fe898f5d850e", ENDITEM,
LAST);
//request:: SESSION_ID=58d917828b30b0b384c35cd437dddda6b3cf6365&CALLTYPE=GET_SRVC_TOK&REQUEST_TOKEN=af582735846393feacdd5e645cb3eaa314ccb6831a58ce0272b475fefac8bb58e69a8b8e04b78ef02e63a2dd1685c6a74253fe898f5d850e
//response:ERROR_CODE=0&SERVICE_TOKEN=5d790fef51bb0c36893af6a058dee4f2fb6fdcad3ee47016fd72b01622ddc559a499bc2f6ced052a723ab0563e98acc2d04bf5eb8030692458dae88b1b79c0dd2313f2ceaa7799668a849521f38eb8301f24abff8dfb0a0859e418f96d236aa1efdb206c015645685361f6f591ed92766558bfc990444e63191c84ae388f049f54baa45ab846c1f5
哪位大侠知道的话,麻烦告诉我,亟待解决,谢谢了。。。。 |
|