|
本帖最后由 cinanji 于 2012-10-9 16:49 编辑
使用web_reg_save_param()进行手动关联的时候,一直提示我无法找到匹配的值,左右边界各种情况我都试过了。现在又些不明白,web_reg_save_param()函数左右边界的取值是直接在脚本里还是执行后再HTML里面取。下面测试脚本,清各位大侠帮忙看看,左右边界要怎么弄
出现的错误:错误 -26377: 找不到所请求参数“TokenValue”的匹配项
web_reg_save_param("TokenValue","LB=\"Name=token\",\"Value=","RB=\"",LAST);
web_url("index.php",
"URL=http://test.123456.com/index.php?ac=get_token",
"Resource=0",
"RecContentType=text/html",
"Referer=http://test.123456.com:8070/home/flash/100010733/93538a",
"Snapshot=t251.inf",
"Mode=HTML",
LAST);
web_submit_data("exchange_2",
"Action=http://test.123456.com/exchange/?ac=login",
"Method=POST",
"RecContentType=text/html",
"Referer=http://test.123456.com:8070/home/flash/100010733/93538a",
"Snapshot=t252.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=ciananji", ENDITEM,
"Name=token", "Value={TokenValue}", ENDITEM,
"Name=gameid", "Value=100010733", ENDITEM,
"Name=uid", "Value=591530049", ENDITEM,
"Name=verify", "Value=8c4c508e19c4e34f6c564d07c17422e8", ENDITEM,
LAST); |
|