|
#include "web_api.h"
Action()
{
web_add_cookie("BAIDUID=8C8EFF1F161B628C1929D0C5E3AD395F; DOMAIN=www.baidu.com");
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(4);
web_add_cookie("BAIDUID=8C8EFF1F161B628C1929D0C5E3AD395F; DOMAIN=s.baidu.com");
web_submit_form("s",
"Snapshot=t2.inf",
ITEMDATA,
"Name=wd", "Value=测试时代", ENDITEM,
EXTRARES,
"URL=http://s.baidu.com/w.gif?path=http://www.baidu.com/s?wd=%B2%E2%CA%D4%CA%B1%B4%FA&cl=3&t=1188195405500", "Referer=http://www.baidu.com/s?wd=%B2%E2%CA%D4%CA%B1%B4%FA&cl=3", ENDITEM,
LAST);
return 0;
} |
|