Hi nitr0x11, thank for replying, I can give you more details, first the requests are zlib compressed, they do it in actionscript with the ByteArray class, the request body contains also some http headers, but they don't add them from the code, so I'm quite sure that it is a normal process of the actionscript URLLoader class. The reply of the server is also zlib compressed, but this isn't a problem. Here the first http post of the client to the server, it's a simple log request:
Code:
Referer: http://kongregate-vikingage-en.shinezone.com/release/flash/TowerDefanseShell_5.swf
Content-type: application/octet-stream
Content-length: 145
xÚ]ŒK‚0E]ËפEOŒȌÒ؇6‚íÃÄöã2…‰§çž{Ÿæ
O…[ƒ"OÎ*NsK)pÆQ»ªUü,
k†@?èp&m¬»A4Pò”¨,J³›Ï¯™P€Í…ü“|½÷¦crü7t½¶™ÚŽJÙÍžªÅk¶“+
kÛ®íCÃ8¹
As you can see, they have some http headers in the body, the compressed part is json:
Code:
¨[{"requestid":95614790400,"command":1},{"request":["stat","flashloading",["1035182782",{"type":"tdServerTest","content":"tdServerTest_failedTimes=0_preDuration=-1"}]]}]
There is a request id, but in the loader-wrapper doesn't use it, all its requests have the same request id. The game instead use it and increment it at each request. The reply of the server is:
Code:
xœ‹6Ô©V*J-,M-.ÉLQ²²45341·4010**QJÎÏÍMÌŠê(¥æ%U”(YÔêÆ
Which is again json deflated
Code:
[1,{"requestid":95614790400,"command":1,"encrypt":0},1]
Now if I resend the same request from the network panel of FF, which means the same url, http headers and body, the server replies with
which is: