新人遇问题 求高人解释
我写了一个关联 如下代码:web_reg_save_param("wen",
"LB/IC=userSession Value",
"RB=",
"Search=All",
"IgnoreRedirections=Yes",
LAST);
web_submit_data("login.pl",
"Action=http://10.41.4.122:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.41.4.122:1080/WebTours/nav.pl?in=home",
"Snapshot=t29.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={wen}", ENDITEM,
"Name=username", "Value=baihua", ENDITEM,
"Name=password", "Value=123", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=50", ENDITEM,
"Name=login.y", "Value=8", ENDITEM,
LAST);
当关联函数里的LB后面不加/IC的话 运行就会报错 报错如下:
Action.c(21): Error -26377: No match found for the requested parameter "wen". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use
web_set_max_html_param_len to increase the parameter size
Action.c(21): web_url("WebTours") highest severity level was "ERROR", 6446 body bytes, 1562 header bytes
但加上/IC以后就可以正常通过
通过网上查找了解到/IC是忽略大小写用的但问题是我LB内的内容大小写和所需关联的左边内容大小写完全一致:
"LB/IC=userSession Value", "Name=userSession", "Value={wen}", ENDITEM
为什么会出现这种情况还有 那个错误到底是什么意思
求高手解答 RB不要留空试试 RB里面写了>还是不行 在action中加上web_set_max_html_param_len("1024");
试试这个看行不行web_reg_save_param("wen",
"LB=userSession Value",
"RB=",
"Search=All",
"IgnoreRedirections=Yes",
LAST);
如果不行的话,就在试试把左右边界加长点
页:
[1]