|
8#
楼主 |
发表于 2007-10-11 11:39:17
|
只看该作者
嗯,我也看到这个web_add_cookie函数的作用就是如果名字和路径存在创建一个新的cookie值覆盖,如果这个cookie值已过期就删除它。
还有我根据回放的日志发现这个cookie值是客户端用js脚本生成的,
function checkCookie(){\r\n
Action.c(113): var tmpcookie = new Date();\r\n
Action.c(113): chkcookie = (tmpcookie.getTime() + '');\r\n
Action.c(113): document.cookie = "chkcookie=" + chkcookie + "; path=/";\r\n
Action.c(113): if (document.cookie.indexOf(chkcookie,0) < 0) {\r\n
Action.c(113): return false;\r\n
Action.c(113): }\r\n
Action.c(113): else {\r\n
Action.c(113): return true;\r\n
Action.c(113): }\r\n
Action.c(113): }\r\n
然后继续查找发现有很多地方都用到了这个cookie值,比如
Action.c(128): t=10291ms: 204-byte response headers for "https://itrade.citics.com.hk:8443/swob_tom/images/zh-hk/langZhTwMO.png" (RelFrameId=1) [issued at Action.c(153)]
Action.c(153): HTTP/1.1 200 OK\r\n
Action.c(153): ETag: W/"469-1191555815000"\r\n
Action.c(153): Last-Modified: Fri, 05 Oct 2007 03:43:35 GMT\r\n
Action.c(153): Content-Type: image/png\r\n
Action.c(153): Content-Length: 469\r\n
Action.c(153): Date: Wed, 10 Oct 2007 11:04:53 GMT\r\n
Action.c(153): Server: Apache-Coyote/1.1\r\n
Action.c(153): \r\n
Action.c(128): t=10372ms: 469-byte response body for "https://itrade.citics.com.hk:8443/swob_tom/images/zh-hk/langZhTwMO.png" (RelFrameId=1) [issued at Action.c(153)]
Action.c(153): t=10375ms: Request done "https://itrade.citics.com.hk:8443/swob_tom/images/zh-hk/langZhTwMO.png" [MsgId: MMSG-26000]
Action.c(153): t=10379ms: Already connected to itrade.citics.com.hk:8443 [MsgId: MMSG-26000]
Action.c(144): t=10382ms: 444-byte request headers for "https://itrade.citics.com.hk:8443/swob_tom/announceFrame.html" (RelFrameId=1) [issued at Action.c(153)]
Action.c(153): GET /swob_tom/announceFrame.html HTTP/1.1\r\n
Action.c(153): Referer: https://itrade.citics.com.hk:8443/swob_tom/index.html\r\n
Action.c(153): User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)\r\n
Action.c(153): Accept-Encoding: gzip, deflate\r\n
Action.c(153): Accept-Language: zh-tw\r\n
Action.c(153): Accept: */*\r\n
Action.c(153): Connection: Keep-Alive\r\n
Action.c(153): Host: itrade.citics.com.hk:8443\r\n
Action.c(153): Cookie: popWinNo=1192014283684; JSESSIONID=480E3F029AFD3FB9BE2B447A4F478260; defaultLangua
Action.c(153): ge=T; chkcookie=1192011806625\r\n
Action.c(153): \r\n
好像都返回的信息都是在头部中的加入这个值的,那么我该如何在这录制脚本中加入这个联合点呢? |
|