Subject: | Response breaks when there are no headers but there's a status line |
Sorry about the "cross-reporting" on POE's main bug reporting tool, I forgot every CPAN module had one of these.
I'm Using POE 0.31 and POE::Component::Client::HTTP 0.65.
POE::Component::Client::HTTP doesn't know what to do when it receives a response with no HTTP headers, but only the status line. I'm not sure, but I think this is legal in HTTP/1.0. And, aside from that, there are web servers generating this kind of response (to be precise: BitTorrent trackers generate this kind of response), so I think it should be fixed.
Here's a response example which breaks it:
0000 48 54 54 50 2f 31 2e 30 20 32 30 30 20 4f 4b 0d - HTTP/1.0 200 OK.
0010 0a 0d 0a 64 38 3a 63 6f 6d 70 6c 65 74 65 69 31 - ...d8:completei1
0020 32 65 31 30 3a 69 6e 63 6f 6d 70 6c 65 74 65 69 - 2e10:incompletei
0030 37 65 38 3a 69 6e 74 65 72 76 61 6c 69 37 30 30 - 7e8:intervali700
0040 30 65 31 32 3a 6d 69 6e 20 69 6e 74 65 72 76 61 - 0e12:min interva
0050 6c 69 37 30 30 30 65 35 3a 70 65 65 72 73 31 31 - li7000e5:peers11
0060 34 3a d5 11 e4 8e 64 d1 94 f0 1e 91 1a e1 52 42 - 4:....d.......RB
0070 d3 91 1a e1 82 ce 77 9f 1a e1 44 64 6e b0 1a e5 - ......w...Ddn...
0080 51 39 a6 b6 5a 60 9c 22 30 ba 1a e1 c8 fb 3d d0 - Q9..Z`."0.....=.
0090 1a e1 c8 96 1a d2 1a 19 80 71 c4 d2 1a e1 44 00 - .........q....D.
00a0 58 dc 32 16 c3 92 8e 01 1a e1 18 94 59 09 00 02 - X.2.........Y...
00b0 d0 d8 6d 14 1a ef 52 28 50 1e 55 7f c8 a5 44 42 - ..m...R(P.U...DB
00c0 27 89 c9 05 1a 46 43 69 42 a9 b6 46 41 f1 46 b8 - '....FCiB..FA.F.
00d0 14 6c 1a e1 65 - .l..e
Thanks in advance.