一个session包括几个request.分析如下
GET /ajaxproxy.htm HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
Referer: http://www.renren.com/
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; aff-kingsoft-ciba; staticlogin:product=cboxf09&act=login&info=ZmlsZW5hbWU9UG93ZXJ3b3JkMjAwOU94Zi4yNTI2OS40MDExLmV4ZSZtYWM9Q0YwMDJFQjMzQTZCNDRFRUE1Nzg2RjBBNDVDRUJEOUQmcGFzc3BvcnQ9JnZlcnNpb249MjAwOS4wNS4yNS4zLjI3MiZjcmFzaHR5cGU9MQ==&verify=c26a539731dee1d43c13e0f44cbdf296)
Host: reg.renren.com
Connection: Keep-Alive
Cookie: _r01_=1
HTTP/1.1 200 OK
Server: nginx/0.8.44
Date: Thu, 09 Dec 2010 15:29:16 GMT
Content-Type: text/html
Connection: keep-alive
ETag: "4wDltoXKzxt"
Last-Modified: Mon, 06 Dec 2010 13:02:30 GMT
Accept-Ranges: bytes
Content-Length: 550
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script>
try{document.domain = window.location.hostname.split('.').reverse().slice(0,2).reverse().join('.');}catch(e){}
getTransport = function( )
{
try
{
try
{
return new ActveXObject( 'Msxml2.XMLHTTP' );
}
catch( e )
{
return new ActiveXObject( 'Microsoft.XMLHTTP' );
}
}
catch( e )
{
return new XMLHttpRequest();
}
};
</script>
</head>
<body></body>
</html>
以上是一个request.
POST /xn6207.do HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Referer: http://reg.renren.com/ajaxproxy.htm
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; aff-kingsoft-ciba; staticlogin:product=cboxf09&act=login&info=ZmlsZW5hbWU9UG93ZXJ3b3JkMjAwOU94Zi4yNTI2OS40MDExLmV4ZSZtYWM9Q0YwMDJFQjMzQTZCNDRFRUE1Nzg2RjBBNDVDRUJEOUQmcGFzc3BvcnQ9JnZlcnNpb249MjAwOS4wNS4yNS4zLjI3MiZjcmFzaHR5cGU9MQ==&verify=c26a539731dee1d43c13e0f44cbdf296)
Host: reg.renren.com
Content-Length: 29
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: _r01_=1; ick=0d09d9d8-0ffa-4aab-ba71-75dd4aad9774
ss=10112&rndval=1291908552919
HTTP/1.1 200 OK
Server: nginx/0.8.44
Date: Thu, 09 Dec 2010 15:29:16 GMT
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Encoding: gzip
1ad5
.........../.w.E.....F3'........L`.
.C......%..&.nMw...p.
....3.....L ...60.;.?..d.._.{ou..e..Lvg.,.K......V.GuUO?...3.....R.j..+.=s...)...~.....=....o..xDJD..1C.L.RtMVc../..P........|t>...Z.....l+........V.J.8M.-4T.,.h%111..C...:.+..*.q.n...aF.4.Q......d..X.4.....M3..5E...R.Ze..D.2$.L-.LkQef.1.....
VQ.BHV...+..L7.%K.e........YL."...,$...B.b.V.....u.0.Ux..s.<6....#..&2.7....T.;/...n.T.b/.....[....z..eCi".>........Q.|v.>u...F{s...ew........to>ho....../...,_./.....=../...~.d......?/.#.g>.O~.5..E......'y....ko.......G.......G..gnw....w.:.......W..........{.n..U..^.....PvN?.W..YZ.W...|.-w.?..8...}].^..=y.Z.f/.n?.....}....k......>....y....E......-..F....."..S._e...q>.q..-.a.K.......O...85.."4........_..o....S....nv..2.......t.z|g..}..8.....S.7.R?W.....{Ps...D.P..j1...R...4W.d..sf.[...KC.i....D*..i..n..[h..4a....LX.1.^.~.
.U.....~k.*.)./.0.....3
Iwa.u.*.,..B..JC...B...Z..>/7q..l..g.M..4N..Ko..^[#bP.#..$...5f....||2..g........m2l...e...'..*.{[email protected].....'....d.d..5".?..^.......1..::..Hx.}......_...f1<>.'.......(0E
.@5`.<g(......He..=...m.$0...|..`..h)...LeeK7...D]..k8#l....b...`...D.o.re.Qf...Ad....-..D..H&....l.L.K&..2.J....g.A&EU..$KO$S....b.......6'r1p.-M.S....-..;..j....'3..Ui.t..._.1.....PN&.......~=T./.]{....._TU...xj......*...4.F.....YY......re....6iR...t.O..B8j......o.....`..f+./x<X.....J....l5...b%.~S.y.....l.e6*.[&3../..Q..V5...X....R.+.6.(....iK.TV..,.[...6.../>..:..D..]...hKb....c..%..F.m.,z...khQ..sI.9#7.#z....(.;12'....E.......?..~...r}.jM.5.J...cjD......bA.f.C..{. M............W.H&.....
f..M.....y..Y.U.~{..C.w.}......L..~=...u.......l...L..x.S#L.Rt..(&.{...%......`..}AW...n....{:
k..Q70..}.E.?req.....v..ib@.
...."......2....<.h.}>.. .D/..
c.x...K................#{F....c....T..R6"EK.B...n..8...5.Ld..So#....9.OI.,JJ...g*.]....V..[.Q.."..`..*...........O.....7.i.~...fx-...:[email protected]'#..M..$....S9l.i.zv[..@. Z......,m.naYe.QU.B.....`$......Eu."...c2 .......s.DE.....`....IU....KH....G`>...A*d./..~[..3'.z.k..w<}......ME. r........e.U.....e.zU...#(3.a.......Qg......C.....M..E{..H..M5.9e.. [....>...q.lgm..{>.XK...l.}x.R....{...PI.+7.r.P...4#..L.=K.G ......gN...I..I...n...&...oB.*.....p............~.......Y......d..Wu....TgJ...KeB..*V....`h.......b..>._0i~.Z..@;N.7.5Tdo>.&B..Lo..W.V...b.y{K"...4...s.6._t...[}....Y..B.Sj..^!...OC..x".:dX.d......._'{d..k.
.C.=.q.*.....
.....9.L..../....#R...>..V...._.9...n....!
j.7x .....'......;.V.m...{d5[50....>...[@Y...G0G.......6.A.5V.$..=..`L.|...._r.yB^...O...*$.ZYU..!;.+f......`R^...y./...{.Y..Zp..QG7...!...R......o.^u_9...
..D.(L.h#e.....^..!....:..7.*41=..E'...x~*....vCj0..W(..B..Q......F.T.L.!+..oeJ.A.m.....U..I.4..6dE...j_.q./2V...5[.|0.l.sz.m..".`NV[@.G..Yr.....V.oX..~.....4 ....g.C....../.i.. a{.%.....tL."...zi.....m..{
..i.s.7&w..c...z.{}.....;..e..^.,o.......en...<.....v....z......I..BT.Yyh.}..t......?.ro9.q.[.~..sw*a.3.......>8.n.........h.3p?.)Tq{.l...;.}i...z.WyA..t...0.T.++Lse.
....G...O....o..........^s.0...l....M.....w.r.i...3.L0..k.Y...'p...Q.
...4.....
..y.1>......k..c...14.A.......#5....6.....K./...+.7..-#V..t._....z..}....wpx....u...a..3.%...>....
[email protected];...xb4...wj..,..-...*.4lolwN?h...{...Fq.....w,..*.........*.._........?....d.
.iX...g...i$.;.....9..I/.>.P..V2.S.B..S..{"K#q.0...o.....-H..[.Q3.J.jT.Nv.......Y.......U>n...
d..#.......O.^.O.0.k..B>..'..^p.!.LN..u/...T.S...N+|{.'..2HN.)..I@Pw...`z.......*................._(...Y-ow....Oo.%.I'{.....~......^.A..m...3:..9{.|....r...`...].f_..}...l.._./........Zko..xv.._9.A...cF2.3.|A..e....)J......}..............+W*u..a.*+[...1..v.T.46/..0......w....V.(2)...2..FU.......S.u.....9.....>.h...L.....-/e........ka...
...S.6p.......=U ..............p...n..W.y'..G..(......|Xm...U2....&.!..."...g2.-..}...i..V+v...v..K.x.c.t......Zo.....}.[..;;.%x....v.....n..,.........}[email protected].*.b...x2....S...18^..D.8...g.FCw...a.X..5P..t....J.`....XQ..U
....zq....F.....(.SZ}........P.3. ..c."!...rXp.&...T..Q.....g....p{..4R.G...]n^,...
.&&/....so....h+.Nr.&<.|..Y*q..(;.). .7....w...%}..H8o...R...............
O..U...{...e..f.....G...'....]. ...../...4...?.._..J...=Y54(5....p..aL.Bx..]h......%
A.x..........
....L$.
/....X.`...K
.l.H..;K...............E......v.w....~.^... G.(....].......
.^......-).U...=|........Ig./..
..2|..u:%^[email protected].......'.$>!"..I^D.#...$K$Y.I.H2".4..E$)"I.H.D...$.$!"!t.......".....d8.P.#...Be.H....."...T..d8.P."...Be.H....."...T..D.n.I&.....f....H.y.@^..<i /[email protected] O...4.'
.E....."
.I.y......H.y.@^..$.....i '[email protected] G...4.#
.D....r"
[email protected] '[email protected] K...4.%
dE....."
dI.Y......H.Y.@V..,i [email protected] K...4.%
dE.@..>....2"
[email protected] #[email protected] C...4.!
dD....2"
dH....M..i..iB7-B7M..E.......4.....&t."t..nZ.n..M..M..i..iB7-B7E..D............."tS"tS.nJ.n..M..M..)..)B7%B7E..D.......$.....$t."t..nR.n..M..M..I..IB7)B7I.&E.&.....$.....$t."t..nB.n..M..M......B7!B7A.&D.&........... t."t..nB.n.......8.+........PI.
rG.$t..#T.....*.]A..... w.JBW.;B%.+.....
..1...%......4t......Dz...
.....
.E1.O...p......t>/......=.W2hx.zA..M......(..Tgme..p..Q...D.K.....z...A."...=...=..o...........B.+.S...z...H...`..".^..K`..n....,..B{%.Vh...
...J...._/..?.l"......{G.f-..?w...{.n;xP.wR...E..VU..h.~o...>?B.....'...^=....~.......e..u.......(...t.n!.{...5...w...-...._..>...C.|W..v
.h..<}.;...p......z/R..n..%..<.{eu...~...A..$<..q..K..V. .....W;+.q....~.w-<.*z...~R........}.._a.._.{0..Mk1T....@{.gm#t......Td.E...t~..J..../@.....5fQQE..*..=g..l>..f'.....x...U
....^.L6..V.7.zga&....:^..C............7..K......2< h|..."T..0.){...>..m9...k.38...........qf.....?.......i..?.K.'L....0.....6gAa..M......=................_..w.4.......5..C...Z...b.....
[email protected]...>..#.^.a..).(...~
e.O~....s..N.lAP)..scc.$}eC.;..c?..*....|........}n./..~.F....G8(....../.4}.[W.(.j....o.SI8...=...;....=.S....w..o/{..P.R3.......k .{...x.s........}.............L...Vl.1..s.+....i...X.......}............p..~....Q_..Pb..(N....C.y.....m."..u.. ..;.1<4M.....-....M|...w......E....7o9...V.oV...Ai.v.{.B..C~.........O.w.tN...9.9.b;....=^,.t.W...X f...}L.(V..
.(...fK.....;..,.........E.U.w......J.;..........]:.
/....7...i|...O.b
]..B."...!.e.............|4..Z.c.>J....x.01...4.x0.s..)......ULR......=d.3.O.......!.K.|/...&..&[email protected]..|fq.g.K..F.^...g.%~....S.1.k.=d/.){...[./....P...j...1.^.X..............S......?.k..TxV.Q~......:4.."..wR~.132..n...Z....^......N.e+.U
x....o.e...).D.z...>ez...
.+......Ta...........l<6E....;.=.t.Nn
z...;[email protected].
.......^0}..9xK..7. .......]..........+..V.c..../...4H..+..[.....|[email protected]&.......x.P..Sd-Z...:..A..../........'3i....m.......s...^.../.._.!.....mJ:.oG..,..$3Q...yx.W.....Om...
.y(.....v...=....F........f.{~j.....#...;......U.Z...R..;.F...!..5U..F#.1..../.?..S.#k?..<f....p^:5..+..>...S..Q|..tL....}`.........!.8..^.12...Gg^~.p.s...)'&..#..dv".....=5.
.G..d.G..$.'y._...}..B.....#,.F...hE4..'
.C.d...P9U8TN....?..'..[..f...D..V......R.F...........DY..
0
以上又是一个request.
所以这里一个session 包含两个request.