为什么关联的值输出不出来
想判断关联的值与预期的值是否一致,但就是获取不到这个值。Action()
{
char string="加入百度推广";
char string1="";
int result;
web_set_max_html_param_len("102400");
web_reg_save_param("neirong",
"LB=refer=888\">",
"RB=</a>",
"Search=ALL",
LAST);
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"Url=/img/i2.png", ENDITEM,
"Url=/img/arr.gif", ENDITEM,
"Url=/js/bdsug.js?v=1.0.3.0", ENDITEM,
"Url=/favicon.ico", "Referer=", ENDITEM,
LAST);
lr_save_string(lr_eval_string("{neirong}"),"string1");
lr_output_message("%s",string);
lr_output_message("%s",string1);
if(string == lr_eval_string("{neirong}"))
{
lr_output_message("成功");
}
else
{
lr_output_message("失败");
}
result = strcmp(string, string1 ); // Case-insensitive comparison
if( result ==0 )
{
lr_output_message("成功");
}
else
{
lr_output_message("失败");
}
return 0;
}
Action.c(18): t=2813ms: Request done "http://gimg.baidu.com/img/gs.gif"
Action.c(18): web_url("www.baidu.com") was successful, 9439 body bytes, 2232 header bytes
Action.c(31): Notify: Parameter Substitution: parameter "neirong" ="加入百度推广"
Action.c(31): Notify: Saving Parameter "string1 = 加入百度推广"
Action.c(37): 加入百度推广
Action.c(39):
Action.c(43): Notify: Parameter Substitution: parameter "neirong" ="加入百度推广"
Action.c(49): 失败
Action.c(61): 失败 本帖最后由 kuangquanshui 于 2011-4-14 10:13 编辑
自己结贴
页:
[1]