TA的每日心情 | 衰 2016-12-30 10:59 |
---|
签到天数: 6 天 连续签到: 1 天 [LV.2]测试排长
|
用lr_save_string或sprintf()都可以
Action()
{
char *word="man";
char para[50];
lr_save_string (word ,"para");
//sprintf(para,"%s",word);
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_form("s",
"Snapshot=t2.inf",
ITEMDATA,
"Name=wd", "Value={para}", ENDITEM,
EXTRARES,
"Url=http://s.baidu.com/w.gif?path=http://www.baidu.com/s?wd=123&t=1222584836609", "Referer=http://www.baidu.com/s?wd=123", ENDITEM,
LAST);
lr_output_message ("search============> :%s",lr_eval_string ("{para}"));
return 0;
} |
|