|
再说说我的脚本
web_custom_request("login.in",
"URL=http://192.168.0.114:9080/XMGL/login.in",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.114:9080/XMGL/framework/login.htm",
"Snapshot=t4.inf",
"Mode=HTML",
"EncType=text/xml; charset=UTF-8",
"Body=<Request><aram><Name><![CDATA[operatorCode]]></Name><Value><![CDATA[shiqiqi]]></Value></Param><aram><Name><![CDATA[password]]></Name><Value><![CDATA[123456]]></Value></Param></Request>\r\n",
LAST);
web_url("index.htm",
"URL=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"Url=images/bg_left2.gif", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
"Url=htc/tree/Tree.htc", "Referer=", ENDITEM,
"Url=images/bg_copyright.gif", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
"Url=images/bg_bt.gif", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
"Url=htc/tree/constant.js", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
"Url=htc/tree/public.js", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
"Url=htc/tree/Tree.js", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
"Url=htc/tree/Display.js", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
"Url=htc/tree/Row.js", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
"Url=htc/tree/TreeNode.js", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
"Url=htc/tree/event.js", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
"Url=htc/tree/DataSource.js", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
"Url=images/loadingbar.swf", "Referer=http://192.168.0.114:9080/XMGL/framework/index.htm?B565EB169B36D639BB723E0BB0E9303F", ENDITEM,
LAST);
web_custom_request这个请求,服务器响应的body部分如下:
Body:
------------------------------------------
<key>B565EB169B36D639BB723E0BB0E9303F</key>
这个是根据登录用户随机产生的数值,每次都在变。该段脚本的客户端请求header的cookie中还没有JSESSIONID
而web_url("index.htm", .......这段脚本中,header的cookie中就添加了JSESSIONID,之后的每个web_custom_request或 web_url的客户端请求header的cookie中都带有JSESSIONID。
针对这种情况,应该如何处理?
[ 本帖最后由 newtester2008 于 2008-3-10 20:32 编辑 ] |
|