|
我的代码如下:
#include "web_api.h"
Action()
{
web_add_cookie("BAIDUID=5FF2E8A3AC78BF0EC9F027110E375702:FG=1; 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(16);
web_add_cookie("BAIDUID=5FF2E8A3AC78BF0EC9F027110E375702:FG=1; DOMAIN=s.baidu.com");
web_submit_form("s",
"Snapshot=t2.inf",
ITEMDATA,
"Name=wd", "Value={NewParam}子", ENDITEM,
EXTRARES,
"URL=http://s.baidu.com/w.gif?path=http://www.baidu.com/s?wd=%D0%C2%C6%AC%D7%D3&t=1216106495968", "Referer=http://www.baidu.com/s?wd=%D0%C2%C6%AC%D7%D3", ENDITEM,
LAST);
web_find("web_find",
"RightOf=<title>",
"LeftOf=</title>",
"What=百度搜索_新片子",
LAST);
return 0;
}
报错信息见附件! |
|