|
8#
楼主 |
发表于 2007-12-7 11:30:58
|
只看该作者
大人,我录制了一个最简单的百度查询操作,代码如下:
Action()
{
web_set_user("domain\\username","password","10.120.20.2:8080");
web_add_cookie("BAIDUID=1A24826E819A2322BDB4B566F726AC01; 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_rendezvous("r1");
web_add_cookie("BAIDUID=1A24826E819A2322BDB4B566F726AC01; DOMAIN=s.baidu.com");
lr_think_time(10);
web_submit_form("s",
"Snapshot=t2.inf",
ITEMDATA,
"Name=wd", "Value=lr", ENDITEM,
EXTRARES,
"Url=http://s.baidu.com/w.gif?path=http%3A%2F%2Fwww.baidu.com%2Fs%3Fwd%3Dlr%26cl%3D3&t=1196995253573", "Referer=http://www.baidu.com/s?wd=lr&cl=3", ENDITEM,
LAST);
return 0;
}
在同事机子上并发操作完全可以实现,但我机子上还是报错:
Action.c(6): Error -27796: Failed to connect to server "10.120.20.2:8080": [10060] Connection timed out
是我本机设置哪里的问题? |
|