|
最近在学习手动关联,用的是21cn的博客(因为没有验证码,比较方便录脚本)
然后在这个地方卡住了,怎么也没办法成功的关联住
总脚本是登录-发帖-离开,先放一下日志文件
在e-log里查到这样的日志
Action.c(80): t=145798ms: 244-byte request body for "http://blog.21cn.com/u/dwrView/call/plaincall/blogViewProxy.selectBlogByPrimaryKey.dwr" (RelFrameId=1)
Action.c(80): callCount=1\n
Action.c(80): page=/godsalibis\n
Action.c(80): httpSessionId=a3tZoBMn2xT_qlj62S\n
Action.c(80): scriptSessionId=11A7F90EA6A2B0E4774B4478B6AA6357445\n
Action.c(80): c0-scriptName=blogViewProxy\n
Action.c(80): c0-methodName=selectBlogByPrimaryKey\n
Action.c(80): c0-id=0\n
Action.c(80): c0-param0=number:34763370\n
a3tZoBMn2xT_qlj62S就是我想关联的部分,所以在脚本里我是这么改的
----------
web_url("blank.html",
"URL=http://blog.21cn.com/blank.html?",
"Resource=0",
"RecContentType=text/html",
"Referer=http://blog.21cn.com/godsalibis",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_reg_save_param("hhs",
"LB=httpSessionId=",
"RB=\n",
LAST);
web_custom_request("blogViewProxy.selectBlogByPrimaryKey.dwr",
"URL=http://blog.21cn.com/u/dwrView/call/plaincall/blogViewProxy.selectBlogByPrimaryKey.dwr",
"Method=POST",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://blog.21cn.com/godsalibis",
"EncType=text/plain",
"Body=callCount=1\n"
"page=/godsalibis\n"
"httpSessionId={hhs}\n"
"scriptSessionId=11A7F90EA6A2B0E4774B4478B6AA6357445\n"
"c0-scriptName=blogViewProxy\n"
"c0-methodName=selectBlogByPrimaryKey\n"
"c0-id=0\n"
"c0-param0=number:34763370\n"
"c0-param1=string:GBK\n"
"batchId=0\n"
"",
LAST);
---------
但是不知道为什么,再次运行的时候,总是会报错,提示说
Action.c(87): Continuing after Error -26377: No match found for the requested parameter "hhs". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
--------
我怀疑是我关联的地方语句有问题,所以才查不到,之后又尝试了
"RB=\n",
"RB=",
"RB=;",
"RB=\"",
几种,但是都一样没用
请教各位到底我什么地方错了呢?
谢谢 |
|