Games do not post JSON as advertised
Closed this issue · 1 comments
minaguib commented
Unlike what the documentation suggest, an AI receiving a game does not receive an HTTP post with a JSON payload. Instead they are receiving a POST with a get-style URL-encoded representation of the game.
Here's a network capture showing a game_over event received by my early AI:
23:48:01.751246 IP 94.23.5.65.40372 > xx.xxx.xxx.xx.1111: Flags [.], seq 150583:152031, ack 3147, win 457, options [nop,nop,TS val 98109851 ecr 3648048060], length 1448
0x0000: 4500 05dc 4da6 4000 3706 a996 5e17 0541 E...M.@.7...^..A
0x0010: 616b 821c 9db4 1771 abbe 9a0d 984e 591f ak.....q.....NY.
0x0020: 8010 01c9 c5d2 0000 0101 080a 05d9 099b ................
0x0030: d970 cbbc 504f 5354 202f 3f61 6374 696f .p..POST./?actio
0x0040: 6e3d 6761 6d65 5f6f 7665 7226 696e 666f n=game_over&info
0x0050: 733d 2537 4225 3232 6761 6d65 5f69 6425 s=%7B%22game_id%
0x0060: 3232 2533 4125 3232 3165 3330 3533 3332 22%3A%221e305332
0x0070: 2d31 6235 652d 3131 6533 2d61 3035 622d -1b5e-11e3-a05b-
0x0080: 6337 3161 3064 3136 6263 3063 2532 3225 c71a0d16bc0c%22%
0x0090: 3243 2532 3263 7572 7265 6e74 5f74 7572 2C%22current_tur
0x00a0: 6e25 3232 2533 4132 3525 3243 2532 326d n%22%3A25%2C%22m
0x00b0: 6178 696d 756d 5f6e 756d 6265 725f 6f66 aximum_number_of
0x00c0: 5f74 7572 6e73 2532 3225 3341 3235 2532 _turns%22%3A25%2
0x00d0: 4325 3232 7469 6d65 5f6c 696d 6974 5f70 C%22time_limit_p
0x00e0: 6572 5f74 7572 6e25 3232 2533 4135 3030 er_turn%22%3A500
0x00f0: 3025 3243 2532 3264 6972 6563 7465 6425 0%2C%22directed%
0x0100: 3232 2533 4166 616c 7365 2532 4325 3232 22%3Afalse%2C%22
0x0110: 6e75 6d62 6572 5f6f 665f 706c 6179 6572 number_of_player
0x0120: 7325 3232 2533 4132 2532 4325 3232 706c s%22%3A2%2C%22pl
0x0130: 6179 6572 5f69 6425 3232 2533 4131 2537 ayer_id%22%3A1%7
0x0140: 4426 6d61 703d 2537 4225 3232 7479 7065 D&map=%7B%22type
0x0150: 7325 3232 2533 4125 3542 2537 4225 3232 s%22%3A%5B%7B%22
0x0160: 6e61 6d65 2532 3225 3341 2532 3263 6974 name%22%3A%22cit
0x0170: 7925 3232 2532 4325 3232 706f 696e 7473 y%22%2C%22points
0x0180: 2532 3225 3341 3125 3243 2532 3273 6f6c %22%3A1%2C%22sol
0x0190: 6469 6572 735f 7065 725f 7475 726e 2532 diers_per_turn%2
0x01a0: 3225 3341 3125 3744 2532 4325 3742 2532 2%3A1%7D%2C%7B%2
0x01b0: 326e 616d 6525 3232 2533 4125 3232 6e6f 2name%22%3A%22no
0x01c0: 6465 2532 3225 3243 2532 3270 6f69 6e74 de%22%2C%22point
0x01d0: 7325 3232 2533 4130 2532 4325 3232 736f s%22%3A0%2C%22so
0x01e0: 6c64 6965 7273 5f70 6572 5f74 7572 6e25 ldiers_per_turn%
0x01f0: 3232 2533 4130 2537 4425 3544 2532 4325 22%3A0%7D%5D%2C%
0x0200: 3232 6e6f 6465 7325 3232 2533 4125 3542 22nodes%22%3A%5B
0x0210: 2537 4225 3232 6964 2532 3225 3341 3125 %7B%22id%22%3A1%
0x0220: 3243 2532 3274 7970 6525 3232 2533 4125 2C%22type%22%3A%
0x0230: 3232 6369 7479 2532 3225 3744 2532 4325 22city%22%7D%2C%
0x0240: 3742 2532 3269 6425 3232 2533 4132 2532 7B%22id%22%3A2%2
0x0250: 4325 3232 7479 7065 2532 3225 3341 2532 C%22type%22%3A%2
0x0260: 3263 6974 7925 3232 2537 4425 3243 2537 2city%22%7D%2C%7
0x0270: 4225 3232 6964 2532 3225 3341 3325 3243 B%22id%22%3A3%2C
0x0280: 2532 3274 7970 6525 3232 2533 4125 3232 %22type%22%3A%22
0x0290: 6369 7479 2532 3225 3744 2532 4325 3742 city%22%7D%2C%7B
0x02a0: 2532 3269 6425 3232 2533 4134 2532 4325 %22id%22%3A4%2C%
0x02b0: 3232 7479 7065 2532 3225 3341 2532 3263 22type%22%3A%22c
0x02c0: 6974 7925 3232 2537 4425 3243 2537 4225 ity%22%7D%2C%7B%
0x02d0: 3232 6964 2532 3225 3341 3525 3243 2532 22id%22%3A5%2C%2
0x02e0: 3274 7970 6525 3232 2533 4125 3232 6369 2type%22%3A%22ci
0x02f0: 7479 2532 3225 3744 2532 4325 3742 2532 ty%22%7D%2C%7B%2
0x0300: 3269 6425 3232 2533 4136 2532 4325 3232 2id%22%3A6%2C%22
0x0310: 7479 7065 2532 3225 3341 2532 3263 6974 type%22%3A%22cit
0x0320: 7925 3232 2537 4425 3243 2537 4225 3232 y%22%7D%2C%7B%22
0x0330: 6964 2532 3225 3341 3725 3243 2532 3274 id%22%3A7%2C%22t
0x0340: 7970 6525 3232 2533 4125 3232 6369 7479 ype%22%3A%22city
0x0350: 2532 3225 3744 2532 4325 3742 2532 3269 %22%7D%2C%7B%22i
0x0360: 6425 3232 2533 4138 2532 4325 3232 7479 d%22%3A8%2C%22ty
0x0370: 7065 2532 3225 3341 2532 3263 6974 7925 pe%22%3A%22city%
0x0380: 3232 2537 4425 3243 2537 4225 3232 6964 22%7D%2C%7B%22id
0x0390: 2532 3225 3341 3925 3243 2532 3274 7970 %22%3A9%2C%22typ
0x03a0: 6525 3232 2533 4125 3232 6369 7479 2532 e%22%3A%22city%2
0x03b0: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x03c0: 3232 2533 4131 3025 3243 2532 3274 7970 22%3A10%2C%22typ
0x03d0: 6525 3232 2533 4125 3232 6369 7479 2532 e%22%3A%22city%2
0x03e0: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x03f0: 3232 2533 4131 3125 3243 2532 3274 7970 22%3A11%2C%22typ
0x0400: 6525 3232 2533 4125 3232 6e6f 6465 2532 e%22%3A%22node%2
0x0410: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x0420: 3232 2533 4131 3225 3243 2532 3274 7970 22%3A12%2C%22typ
0x0430: 6525 3232 2533 4125 3232 6e6f 6465 2532 e%22%3A%22node%2
0x0440: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x0450: 3232 2533 4131 3325 3243 2532 3274 7970 22%3A13%2C%22typ
0x0460: 6525 3232 2533 4125 3232 6e6f 6465 2532 e%22%3A%22node%2
0x0470: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x0480: 3232 2533 4131 3425 3243 2532 3274 7970 22%3A14%2C%22typ
0x0490: 6525 3232 2533 4125 3232 6e6f 6465 2532 e%22%3A%22node%2
0x04a0: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x04b0: 3232 2533 4131 3525 3243 2532 3274 7970 22%3A15%2C%22typ
0x04c0: 6525 3232 2533 4125 3232 6e6f 6465 2532 e%22%3A%22node%2
0x04d0: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x04e0: 3232 2533 4131 3625 3243 2532 3274 7970 22%3A16%2C%22typ
0x04f0: 6525 3232 2533 4125 3232 6e6f 6465 2532 e%22%3A%22node%2
0x0500: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x0510: 3232 2533 4131 3725 3243 2532 3274 7970 22%3A17%2C%22typ
0x0520: 6525 3232 2533 4125 3232 6e6f 6465 2532 e%22%3A%22node%2
0x0530: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x0540: 3232 2533 4131 3825 3243 2532 3274 7970 22%3A18%2C%22typ
0x0550: 6525 3232 2533 4125 3232 6e6f 6465 2532 e%22%3A%22node%2
0x0560: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x0570: 3232 2533 4131 3925 3243 2532 3274 7970 22%3A19%2C%22typ
0x0580: 6525 3232 2533 4125 3232 6e6f 6465 2532 e%22%3A%22node%2
0x0590: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x05a0: 3232 2533 4132 3025 3243 2532 3274 7970 22%3A20%2C%22typ
0x05b0: 6525 3232 2533 4125 3232 6e6f 6465 2532 e%22%3A%22node%2
0x05c0: 3225 3744 2532 4325 3742 2532 3269 6425 2%7D%2C%7B%22id%
0x05d0: 3232 2533 4132 3125 3243 2532 22%3A21%2C%2
23:48:01.752232 IP 94.23.5.65.40372 > xx.xxx.xxx.xx.1111: Flags [P.], seq 152031:156368, ack 3147, win 457, options [nop,nop,TS val 98109851 ecr 3648048060], length 4337
0x0000: 4500 1125 4da7 4000 3706 9e4c 5e17 0541 E..%M.@.7..L^..A
0x0010: 616b 821c 9db4 1771 abbe 9fb5 984e 591f ak.....q.....NY.
0x0020: 8018 01c9 57f7 0000 0101 080a 05d9 099b ....W...........
0x0030: d970 cbbc 3274 7970 6525 3232 2533 4125 .p..2type%22%3A%
0x0040: 3232 6e6f 6465 2532 3225 3744 2532 4325 22node%22%7D%2C%
0x0050: 3742 2532 3269 6425 3232 2533 4132 3225 7B%22id%22%3A22%
0x0060: 3243 2532 3274 7970 6525 3232 2533 4125 2C%22type%22%3A%
0x0070: 3232 6e6f 6465 2532 3225 3744 2532 4325 22node%22%7D%2C%
0x0080: 3742 2532 3269 6425 3232 2533 4132 3325 7B%22id%22%3A23%
0x0090: 3243 2532 3274 7970 6525 3232 2533 4125 2C%22type%22%3A%
0x00a0: 3232 6e6f 6465 2532 3225 3744 2532 4325 22node%22%7D%2C%
0x00b0: 3742 2532 3269 6425 3232 2533 4132 3425 7B%22id%22%3A24%
0x00c0: 3243 2532 3274 7970 6525 3232 2533 4125 2C%22type%22%3A%
0x00d0: 3232 6e6f 6465 2532 3225 3744 2532 4325 22node%22%7D%2C%
0x00e0: 3742 2532 3269 6425 3232 2533 4132 3525 7B%22id%22%3A25%
0x00f0: 3243 2532 3274 7970 6525 3232 2533 4125 2C%22type%22%3A%
0x0100: 3232 6e6f 6465 2532 3225 3744 2532 4325 22node%22%7D%2C%
0x0110: 3742 2532 3269 6425 3232 2533 4132 3625 7B%22id%22%3A26%
0x0120: 3243 2532 3274 7970 6525 3232 2533 4125 2C%22type%22%3A%
0x0130: 3232 6e6f 6465 2532 3225 3744 2532 4325 22node%22%7D%2C%
0x0140: 3742 2532 3269 6425 3232 2533 4132 3725 7B%22id%22%3A27%
0x0150: 3243 2532 3274 7970 6525 3232 2533 4125 2C%22type%22%3A%
0x0160: 3232 6e6f 6465 2532 3225 3744 2532 4325 22node%22%7D%2C%
0x0170: 3742 2532 3269 6425 3232 2533 4132 3825 7B%22id%22%3A28%
0x0180: 3243 2532 3274 7970 6525 3232 2533 4125 2C%22type%22%3A%
0x0190: 3232 6e6f 6465 2532 3225 3744 2535 4425 22node%22%7D%5D%
0x01a0: 3243 2532 3270 6174 6873 2532 3225 3341 2C%22paths%22%3A
0x01b0: 2535 4225 3742 2532 3266 726f 6d25 3232 %5B%7B%22from%22
0x01c0: 2533 4137 2532 4325 3232 746f 2532 3225 %3A7%2C%22to%22%
0x01d0: 3341 3132 2537 4425 3243 2537 4225 3232 3A12%7D%2C%7B%22
0x01e0: 6672 6f6d 2532 3225 3341 3725 3243 2532 from%22%3A7%2C%2
0x01f0: 3274 6f25 3232 2533 4131 3325 3744 2532 2to%22%3A13%7D%2
0x0200: 4325 3742 2532 3266 726f 6d25 3232 2533 C%7B%22from%22%3
0x0210: 4131 3225 3243 2532 3274 6f25 3232 2533 A12%2C%22to%22%3
0x0220: 4131 3325 3744 2532 4325 3742 2532 3266 A13%7D%2C%7B%22f
0x0230: 726f 6d25 3232 2533 4131 3125 3243 2532 rom%22%3A11%2C%2
0x0240: 3274 6f25 3232 2533 4131 3225 3744 2532 2to%22%3A12%7D%2
0x0250: 4325 3742 2532 3266 726f 6d25 3232 2533 C%7B%22from%22%3
0x0260: 4131 3325 3243 2532 3274 6f25 3232 2533 A13%2C%22to%22%3
0x0270: 4131 3525 3744 2532 4325 3742 2532 3266 A15%7D%2C%7B%22f
0x0280: 726f 6d25 3232 2533 4138 2532 4325 3232 rom%22%3A8%2C%22
0x0290: 746f 2532 3225 3341 3135 2537 4425 3243 to%22%3A15%7D%2C
0x02a0: 2537 4225 3232 6672 6f6d 2532 3225 3341 %7B%22from%22%3A
0x02b0: 3625 3243 2532 3274 6f25 3232 2533 4131 6%2C%22to%22%3A1
0x02c0: 3125 3744 2532 4325 3742 2532 3266 726f 1%7D%2C%7B%22fro
0x02d0: 6d25 3232 2533 4136 2532 4325 3232 746f m%22%3A6%2C%22to
0x02e0: 2532 3225 3341 3134 2537 4425 3243 2537 %22%3A14%7D%2C%7
0x02f0: 4225 3232 6672 6f6d 2532 3225 3341 3525 B%22from%22%3A5%
0x0300: 3243 2532 3274 6f25 3232 2533 4131 3425 2C%22to%22%3A14%
0x0310: 3744 2532 4325 3742 2532 3266 726f 6d25 7D%2C%7B%22from%
0x0320: 3232 2533 4135 2532 4325 3232 746f 2532 22%3A5%2C%22to%2
0x0330: 3225 3341 3137 2537 4425 3243 2537 4225 2%3A17%7D%2C%7B%
0x0340: 3232 6672 6f6d 2532 3225 3341 3134 2532 22from%22%3A14%2
0x0350: 4325 3232 746f 2532 3225 3341 3137 2537 C%22to%22%3A17%7
0x0360: 4425 3243 2537 4225 3232 6672 6f6d 2532 D%2C%7B%22from%2
0x0370: 3225 3341 3134 2532 4325 3232 746f 2532 2%3A14%2C%22to%2
0x0380: 3225 3341 3138 2537 4425 3243 2537 4225 2%3A18%7D%2C%7B%
0x0390: 3232 6672 6f6d 2532 3225 3341 3132 2532 22from%22%3A12%2
0x03a0: 4325 3232 746f 2532 3225 3341 3136 2537 C%22to%22%3A16%7
0x03b0: 4425 3243 2537 4225 3232 6672 6f6d 2532 D%2C%7B%22from%2
0x03c0: 3225 3341 3136 2532 4325 3232 746f 2532 2%3A16%2C%22to%2
0x03d0: 3225 3341 3138 2537 4425 3243 2537 4225 2%3A18%7D%2C%7B%
0x03e0: 3232 6672 6f6d 2532 3225 3341 3125 3243 22from%22%3A1%2C
0x03f0: 2532 3274 6f25 3232 2533 4131 3625 3744 %22to%22%3A16%7D
0x0400: 2532 4325 3742 2532 3266 726f 6d25 3232 %2C%7B%22from%22
0x0410: 2533 4131 2532 4325 3232 746f 2532 3225 %3A1%2C%22to%22%
0x0420: 3341 3139 2537 4425 3243 2537 4225 3232 3A19%7D%2C%7B%22
0x0430: 6672 6f6d 2532 3225 3341 3135 2532 4325 from%22%3A15%2C%
0x0440: 3232 746f 2532 3225 3341 3139 2537 4425 22to%22%3A19%7D%
0x0450: 3243 2537 4225 3232 6672 6f6d 2532 3225 2C%7B%22from%22%
0x0460: 3341 3825 3243 2532 3274 6f25 3232 2533 3A8%2C%22to%22%3
0x0470: 4132 3025 3744 2532 4325 3742 2532 3266 A20%7D%2C%7B%22f
0x0480: 726f 6d25 3232 2533 4131 3925 3243 2532 rom%22%3A19%2C%2
0x0490: 3274 6f25 3232 2533 4132 3125 3744 2532 2to%22%3A21%7D%2
0x04a0: 4325 3742 2532 3266 726f 6d25 3232 2533 C%7B%22from%22%3
0x04b0: 4132 2532 4325 3232 746f 2532 3225 3341 A2%2C%22to%22%3A
0x04c0: 3138 2537 4425 3243 2537 4225 3232 6672 18%7D%2C%7B%22fr
0x04d0: 6f6d 2532 3225 3341 3425 3243 2532 3274 om%22%3A4%2C%22t
0x04e0: 6f25 3232 2533 4131 3725 3744 2532 4325 o%22%3A17%7D%2C%
0x04f0: 3742 2532 3266 726f 6d25 3232 2533 4131 7B%22from%22%3A1
0x0500: 3725 3243 2532 3274 6f25 3232 2533 4132 7%2C%22to%22%3A2
0x0510: 3225 3744 2532 4325 3742 2532 3266 726f 2%7D%2C%7B%22fro
0x0520: 6d25 3232 2533 4132 3225 3243 2532 3274 m%22%3A22%2C%22t
0x0530: 6f25 3232 2533 4132 3525 3744 2532 4325 o%22%3A25%7D%2C%
0x0540: 3742 2532 3266 726f 6d25 3232 2533 4134 7B%22from%22%3A4
0x0550: 2532 4325 3232 746f 2532 3225 3341 3232 %2C%22to%22%3A22
0x0560: 2537 4425 3243 2537 4225 3232 6672 6f6d %7D%2C%7B%22from
0x0570: 2532 3225 3341 3232 2532 4325 3232 746f %22%3A22%2C%22to
0x0580: 2532 3225 3341 3233 2537 4425 3243 2537 %22%3A23%7D%2C%7
0x0590: 4225 3232 6672 6f6d 2532 3225 3341 3225 B%22from%22%3A2%
0x05a0: 3243 2532 3274 6f25 3232 2533 4132 3325 2C%22to%22%3A23%
0x05b0: 3744 2532 4325 3742 2532 3266 726f 6d25 7D%2C%7B%22from%
0x05c0: 3232 2533 4132 3325 3243 2532 3274 6f25 22%3A23%2C%22to%
0x05d0: 3232 2533 4132 3425 3744 2532 4325 3742 22%3A24%7D%2C%7B
0x05e0: 2532 3266 726f 6d25 3232 2533 4131 3025 %22from%22%3A10%
0x05f0: 3243 2532 3274 6f25 3232 2533 4132 3525 2C%22to%22%3A25%
0x0600: 3744 2532 4325 3742 2532 3266 726f 6d25 7D%2C%7B%22from%
0x0610: 3232 2533 4131 3025 3243 2532 3274 6f25 22%3A10%2C%22to%
0x0620: 3232 2533 4132 3825 3744 2532 4325 3742 22%3A28%7D%2C%7B
0x0630: 2532 3266 726f 6d25 3232 2533 4133 2532 %22from%22%3A3%2
0x0640: 4325 3232 746f 2532 3225 3341 3231 2537 C%22to%22%3A21%7
0x0650: 4425 3243 2537 4225 3232 6672 6f6d 2532 D%2C%7B%22from%2
0x0660: 3225 3341 3325 3243 2532 3274 6f25 3232 2%3A3%2C%22to%22
0x0670: 2533 4132 3425 3744 2532 4325 3742 2532 %3A24%7D%2C%7B%2
0x0680: 3266 726f 6d25 3232 2533 4132 3425 3243 2from%22%3A24%2C
0x0690: 2532 3274 6f25 3232 2533 4132 3825 3744 %22to%22%3A28%7D
0x06a0: 2532 4325 3742 2532 3266 726f 6d25 3232 %2C%7B%22from%22
0x06b0: 2533 4132 3725 3243 2532 3274 6f25 3232 %3A27%2C%22to%22
0x06c0: 2533 4132 3825 3744 2532 4325 3742 2532 %3A28%7D%2C%7B%2
0x06d0: 3266 726f 6d25 3232 2533 4132 3125 3243 2from%22%3A21%2C
0x06e0: 2532 3274 6f25 3232 2533 4132 3625 3744 %22to%22%3A26%7D
0x06f0: 2532 4325 3742 2532 3266 726f 6d25 3232 %2C%7B%22from%22
0x0700: 2533 4132 3025 3243 2532 3274 6f25 3232 %3A20%2C%22to%22
0x0710: 2533 4132 3625 3744 2532 4325 3742 2532 %3A26%7D%2C%7B%2
0x0720: 3266 726f 6d25 3232 2533 4132 3625 3243 2from%22%3A26%2C
0x0730: 2532 3274 6f25 3232 2533 4132 3725 3744 %22to%22%3A27%7D
0x0740: 2532 4325 3742 2532 3266 726f 6d25 3232 %2C%7B%22from%22
0x0750: 2533 4139 2532 4325 3232 746f 2532 3225 %3A9%2C%22to%22%
0x0760: 3341 3236 2537 4425 3243 2537 4225 3232 3A26%7D%2C%7B%22
0x0770: 6672 6f6d 2532 3225 3341 3925 3243 2532 from%22%3A9%2C%2
0x0780: 3274 6f25 3232 2533 4132 3725 3744 2535 2to%22%3A27%7D%5
0x0790: 4425 3744 2673 7461 7465 3d25 3542 2537 D%7D&state=%5B%7
0x07a0: 4225 3232 6e6f 6465 5f69 6425 3232 2533 B%22node_id%22%3
0x07b0: 4131 2532 4325 3232 706c 6179 6572 5f69 A1%2C%22player_i
0x07c0: 6425 3232 2533 4130 2532 4325 3232 6e75 d%22%3A0%2C%22nu
0x07d0: 6d62 6572 5f6f 665f 736f 6c64 6965 7273 mber_of_soldiers
0x07e0: 2532 3225 3341 3233 2537 4425 3243 2537 %22%3A23%7D%2C%7
0x07f0: 4225 3232 6e6f 6465 5f69 6425 3232 2533 B%22node_id%22%3
0x0800: 4132 2532 4325 3232 706c 6179 6572 5f69 A2%2C%22player_i
0x0810: 6425 3232 2533 4130 2532 4325 3232 6e75 d%22%3A0%2C%22nu
0x0820: 6d62 6572 5f6f 665f 736f 6c64 6965 7273 mber_of_soldiers
0x0830: 2532 3225 3341 3130 2537 4425 3243 2537 %22%3A10%7D%2C%7
0x0840: 4225 3232 6e6f 6465 5f69 6425 3232 2533 B%22node_id%22%3
0x0850: 4133 2532 4325 3232 706c 6179 6572 5f69 A3%2C%22player_i
0x0860: 6425 3232 2533 4130 2532 4325 3232 6e75 d%22%3A0%2C%22nu
0x0870: 6d62 6572 5f6f 665f 736f 6c64 6965 7273 mber_of_soldiers
0x0880: 2532 3225 3341 3137 2537 4425 3243 2537 %22%3A17%7D%2C%7
0x0890: 4225 3232 6e6f 6465 5f69 6425 3232 2533 B%22node_id%22%3
0x08a0: 4134 2532 4325 3232 706c 6179 6572 5f69 A4%2C%22player_i
0x08b0: 6425 3232 2533 4131 2532 4325 3232 6e75 d%22%3A1%2C%22nu
0x08c0: 6d62 6572 5f6f 665f 736f 6c64 6965 7273 mber_of_soldiers
0x08d0: 2532 3225 3341 3330 2537 4425 3243 2537 %22%3A30%7D%2C%7
0x08e0: 4225 3232 6e6f 6465 5f69 6425 3232 2533 B%22node_id%22%3
0x08f0: 4135 2532 4325 3232 706c 6179 6572 5f69 A5%2C%22player_i
0x0900: 6425 3232 2533 416e 756c 6c25 3243 2532 d%22%3Anull%2C%2
0x0910: 326e 756d 6265 725f 6f66 5f73 6f6c 6469 2number_of_soldi
0x0920: 6572 7325 3232 2533 4130 2537 4425 3243 ers%22%3A0%7D%2C
0x0930: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x0940: 2533 4136 2532 4325 3232 706c 6179 6572 %3A6%2C%22player
0x0950: 5f69 6425 3232 2533 4130 2532 4325 3232 _id%22%3A0%2C%22
0x0960: 6e75 6d62 6572 5f6f 665f 736f 6c64 6965 number_of_soldie
0x0970: 7273 2532 3225 3341 3130 2537 4425 3243 rs%22%3A10%7D%2C
0x0980: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x0990: 2533 4137 2532 4325 3232 706c 6179 6572 %3A7%2C%22player
0x09a0: 5f69 6425 3232 2533 4130 2532 4325 3232 _id%22%3A0%2C%22
0x09b0: 6e75 6d62 6572 5f6f 665f 736f 6c64 6965 number_of_soldie
0x09c0: 7273 2532 3225 3341 3231 2537 4425 3243 rs%22%3A21%7D%2C
0x09d0: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x09e0: 2533 4138 2532 4325 3232 706c 6179 6572 %3A8%2C%22player
0x09f0: 5f69 6425 3232 2533 4130 2532 4325 3232 _id%22%3A0%2C%22
0x0a00: 6e75 6d62 6572 5f6f 665f 736f 6c64 6965 number_of_soldie
0x0a10: 7273 2532 3225 3341 3139 2537 4425 3243 rs%22%3A19%7D%2C
0x0a20: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x0a30: 2533 4139 2532 4325 3232 706c 6179 6572 %3A9%2C%22player
0x0a40: 5f69 6425 3232 2533 4130 2532 4325 3232 _id%22%3A0%2C%22
0x0a50: 6e75 6d62 6572 5f6f 665f 736f 6c64 6965 number_of_soldie
0x0a60: 7273 2532 3225 3341 3137 2537 4425 3243 rs%22%3A17%7D%2C
0x0a70: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x0a80: 2533 4131 3025 3243 2532 3270 6c61 7965 %3A10%2C%22playe
0x0a90: 725f 6964 2532 3225 3341 3025 3243 2532 r_id%22%3A0%2C%2
0x0aa0: 326e 756d 6265 725f 6f66 5f73 6f6c 6469 2number_of_soldi
0x0ab0: 6572 7325 3232 2533 4139 2537 4425 3243 ers%22%3A9%7D%2C
0x0ac0: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x0ad0: 2533 4131 3125 3243 2532 3270 6c61 7965 %3A11%2C%22playe
0x0ae0: 725f 6964 2532 3225 3341 3025 3243 2532 r_id%22%3A0%2C%2
0x0af0: 326e 756d 6265 725f 6f66 5f73 6f6c 6469 2number_of_soldi
0x0b00: 6572 7325 3232 2533 4131 2537 4425 3243 ers%22%3A1%7D%2C
0x0b10: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x0b20: 2533 4131 3225 3243 2532 3270 6c61 7965 %3A12%2C%22playe
0x0b30: 725f 6964 2532 3225 3341 3025 3243 2532 r_id%22%3A0%2C%2
0x0b40: 326e 756d 6265 725f 6f66 5f73 6f6c 6469 2number_of_soldi
0x0b50: 6572 7325 3232 2533 4131 2537 4425 3243 ers%22%3A1%7D%2C
0x0b60: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x0b70: 2533 4131 3325 3243 2532 3270 6c61 7965 %3A13%2C%22playe
0x0b80: 725f 6964 2532 3225 3341 3025 3243 2532 r_id%22%3A0%2C%2
0x0b90: 326e 756d 6265 725f 6f66 5f73 6f6c 6469 2number_of_soldi
0x0ba0: 6572 7325 3232 2533 4131 2537 4425 3243 ers%22%3A1%7D%2C
0x0bb0: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x0bc0: 2533 4131 3425 3243 2532 3270 6c61 7965 %3A14%2C%22playe
0x0bd0: 725f 6964 2532 3225 3341 3025 3243 2532 r_id%22%3A0%2C%2
0x0be0: 326e 756d 6265 725f 6f66 5f73 6f6c 6469 2number_of_soldi
0x0bf0: 6572 7325 3232 2533 4131 2537 4425 3243 ers%22%3A1%7D%2C
0x0c00: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x0c10: 2533 4131 3525 3243 2532 3270 6c61 7965 %3A15%2C%22playe
0x0c20: 725f 6964 2532 3225 3341 3025 3243 2532 r_id%22%3A0%2C%2
0x0c30: 326e 756d 6265 725f 6f66 5f73 6f6c 6469 2number_of_soldi
0x0c40: 6572 7325 3232 2533 4131 2537 4425 3243 ers%22%3A1%7D%2C
0x0c50: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x0c60: 2533 4131 3625 3243 2532 3270 6c61 7965 %3A16%2C%22playe
0x0c70: 725f 6964 2532 3225 3341 3025 3243 2532 r_id%22%3A0%2C%2
0x0c80: 326e 756d 6265 725f 6f66 5f73 6f6c 6469 2number_of_soldi
0x0c90: 6572 7325 3232 2533 4131 2537 4425 3243 ers%22%3A1%7D%2C
0x0ca0: 2537 4225 3232 6e6f 6465 5f69 6425 3232 %7B%22node_id%22
0x0cb0: 2533 4131 3725 3243 2532 3270 6c61 7965 %3A17%2C%22playe
0x0cc0: 725f 6964 2532 3225 3341 3025 3243 2532 r_id%22%3A0%2C%2
0x0cd0: 326e 756d 6265 725f 6f66 5f73 6f6c 6469 2number_of_soldi
0x0ce0: 6572 7325 3232 2533 4131 3625 3744 2532 ers%22%3A16%7D%2
0x0cf0: 4325 3742 2532 326e 6f64 655f 6964 2532 C%7B%22node_id%2
0x0d00: 3225 3341 3138 2532 4325 3232 706c 6179 2%3A18%2C%22play
0x0d10: 6572 5f69 6425 3232 2533 4130 2532 4325 er_id%22%3A0%2C%
0x0d20: 3232 6e75 6d62 6572 5f6f 665f 736f 6c64 22number_of_sold
0x0d30: 6965 7273 2532 3225 3341 3125 3744 2532 iers%22%3A1%7D%2
0x0d40: 4325 3742 2532 326e 6f64 655f 6964 2532 C%7B%22node_id%2
0x0d50: 3225 3341 3139 2532 4325 3232 706c 6179 2%3A19%2C%22play
0x0d60: 6572 5f69 6425 3232 2533 4130 2532 4325 er_id%22%3A0%2C%
0x0d70: 3232 6e75 6d62 6572 5f6f 665f 736f 6c64 22number_of_sold
0x0d80: 6965 7273 2532 3225 3341 3125 3744 2532 iers%22%3A1%7D%2
0x0d90: 4325 3742 2532 326e 6f64 655f 6964 2532 C%7B%22node_id%2
0x0da0: 3225 3341 3230 2532 4325 3232 706c 6179 2%3A20%2C%22play
0x0db0: 6572 5f69 6425 3232 2533 4130 2532 4325 er_id%22%3A0%2C%
0x0dc0: 3232 6e75 6d62 6572 5f6f 665f 736f 6c64 22number_of_sold
0x0dd0: 6965 7273 2532 3225 3341 3125 3744 2532 iers%22%3A1%7D%2
0x0de0: 4325 3742 2532 326e 6f64 655f 6964 2532 C%7B%22node_id%2
0x0df0: 3225 3341 3231 2532 4325 3232 706c 6179 2%3A21%2C%22play
0x0e00: 6572 5f69 6425 3232 2533 4130 2532 4325 er_id%22%3A0%2C%
0x0e10: 3232 6e75 6d62 6572 5f6f 665f 736f 6c64 22number_of_sold
0x0e20: 6965 7273 2532 3225 3341 3125 3744 2532 iers%22%3A1%7D%2
0x0e30: 4325 3742 2532 326e 6f64 655f 6964 2532 C%7B%22node_id%2
0x0e40: 3225 3341 3232 2532 4325 3232 706c 6179 2%3A22%2C%22play
0x0e50: 6572 5f69 6425 3232 2533 4130 2532 4325 er_id%22%3A0%2C%
0x0e60: 3232 6e75 6d62 6572 5f6f 665f 736f 6c64 22number_of_sold
0x0e70: 6965 7273 2532 3225 3341 3130 2537 4425 iers%22%3A10%7D%
0x0e80: 3243 2537 4225 3232 6e6f 6465 5f69 6425 2C%7B%22node_id%
0x0e90: 3232 2533 4132 3325 3243 2532 3270 6c61 22%3A23%2C%22pla
0x0ea0: 7965 725f 6964 2532 3225 3341 3025 3243 yer_id%22%3A0%2C
0x0eb0: 2532 326e 756d 6265 725f 6f66 5f73 6f6c %22number_of_sol
0x0ec0: 6469 6572 7325 3232 2533 4131 2537 4425 diers%22%3A1%7D%
0x0ed0: 3243 2537 4225 3232 6e6f 6465 5f69 6425 2C%7B%22node_id%
0x0ee0: 3232 2533 4132 3425 3243 2532 3270 6c61 22%3A24%2C%22pla
0x0ef0: 7965 725f 6964 2532 3225 3341 3025 3243 yer_id%22%3A0%2C
0x0f00: 2532 326e 756d 6265 725f 6f66 5f73 6f6c %22number_of_sol
0x0f10: 6469 6572 7325 3232 2533 4131 2537 4425 diers%22%3A1%7D%
0x0f20: 3243 2537 4225 3232 6e6f 6465 5f69 6425 2C%7B%22node_id%
0x0f30: 3232 2533 4132 3525 3243 2532 3270 6c61 22%3A25%2C%22pla
0x0f40: 7965 725f 6964 2532 3225 3341 3025 3243 yer_id%22%3A0%2C
0x0f50: 2532 326e 756d 6265 725f 6f66 5f73 6f6c %22number_of_sol
0x0f60: 6469 6572 7325 3232 2533 4131 2537 4425 diers%22%3A1%7D%
0x0f70: 3243 2537 4225 3232 6e6f 6465 5f69 6425 2C%7B%22node_id%
0x0f80: 3232 2533 4132 3625 3243 2532 3270 6c61 22%3A26%2C%22pla
0x0f90: 7965 725f 6964 2532 3225 3341 3025 3243 yer_id%22%3A0%2C
0x0fa0: 2532 326e 756d 6265 725f 6f66 5f73 6f6c %22number_of_sol
0x0fb0: 6469 6572 7325 3232 2533 4131 2537 4425 diers%22%3A1%7D%
0x0fc0: 3243 2537 4225 3232 6e6f 6465 5f69 6425 2C%7B%22node_id%
0x0fd0: 3232 2533 4132 3725 3243 2532 3270 6c61 22%3A27%2C%22pla
0x0fe0: 7965 725f 6964 2532 3225 3341 3025 3243 yer_id%22%3A0%2C
0x0ff0: 2532 326e 756d 6265 725f 6f66 5f73 6f6c %22number_of_sol
0x1000: 6469 6572 7325 3232 2533 4131 2537 4425 diers%22%3A1%7D%
0x1010: 3243 2537 4225 3232 6e6f 6465 5f69 6425 2C%7B%22node_id%
0x1020: 3232 2533 4132 3825 3243 2532 3270 6c61 22%3A28%2C%22pla
0x1030: 7965 725f 6964 2532 3225 3341 3025 3243 yer_id%22%3A0%2C
0x1040: 2532 326e 756d 6265 725f 6f66 5f73 6f6c %22number_of_sol
0x1050: 6469 6572 7325 3232 2533 4131 2537 4425 diers%22%3A1%7D%
0x1060: 3544 2048 5454 502f 312e 310d 0a48 6f73 5D.HTTP/1.1..Hos
0x1070: 743a 206d 696e 612e 6e61 6775 6962 2e63 t:.mina.xxxxxxxx
0x1080: 613a 3630 3031 0d0a 5573 6572 2d41 6765 x:1111..User-Age
0x1090: 6e74 3a20 5479 7068 6f65 7573 202d 2068 nt:.Typhoeus.-.h
0x10a0: 7474 7073 3a2f 2f67 6974 6875 622e 636f ttps://github.co
0x10b0: 6d2f 7479 7068 6f65 7573 2f74 7970 686f m/typhoeus/typho
0x10c0: 6575 730d 0a41 6363 6570 743a 2061 7070 eus..Accept:.app
0x10d0: 6c69 6361 7469 6f6e 2f6a 736f 6e0d 0a43 lication/json..C
0x10e0: 6f6e 7465 6e74 2d4c 656e 6774 683a 2030 ontent-Length:.0
0x10f0: 0d0a 436f 6e74 656e 742d 5479 7065 3a20 ..Content-Type:.
0x1100: 6170 706c 6963 6174 696f 6e2f 782d 7777 application/x-ww
0x1110: 772d 666f 726d 2d75 726c 656e 636f 6465 w-form-urlencode
0x1120: 640d 0a0d 0a d....
I suppose this works transparently for many ruby web servers, but it won't fly for many others (I'm writing a helper abstraction in Go).
gmalette commented
Fixed