lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | chunked Transfer-Encoding |
| 7 | FAILURE |
| 8 | </keywords> |
| 9 | </info> |
| 10 | # |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data> |
| 14 | HTTP/1.1 200 funky chunky! |
| 15 | Server: fakeit/0.9 fakeitbad/1.0 |
| 16 | Transfer-Encoding: chunked |
| 17 | Connection: mooo |
| 18 | |
| 19 | 2
|
| 20 | a |
| 21 |
|
| 22 | ILLEGAL
|
| 23 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
| 24 | </data> |
| 25 | <datacheck> |
| 26 | HTTP/1.1 200 funky chunky! |
| 27 | Server: fakeit/0.9 fakeitbad/1.0 |
| 28 | Transfer-Encoding: chunked |
| 29 | Connection: mooo |
| 30 | |
| 31 | a |
| 32 | </datacheck> |
| 33 | </reply> |
| 34 | |
| 35 | # |
| 36 | # Client-side |
| 37 | <client> |
| 38 | <server> |
| 39 | http |
| 40 | </server> |
| 41 | <name> |
| 42 | HTTP GET with bad chunked Transfer-Encoding |
| 43 | </name> |
| 44 | <command> |
| 45 | http://%HOSTIP:%HTTPPORT/36 |
| 46 | </command> |
| 47 | </client> |
| 48 | |
| 49 | # |
| 50 | # Verify data after the test has been "shot" |
| 51 | <verify> |
| 52 | <errorcode> |
| 53 | 56 |
| 54 | </errorcode> |
| 55 | <strip> |
| 56 | ^User-Agent:.* |
| 57 | </strip> |
| 58 | <protocol> |
| 59 | GET /36 HTTP/1.1
|
| 60 | Host: %HOSTIP:%HTTPPORT
|
| 61 | Accept: */*
|
| 62 |
|
| 63 | </protocol> |
| 64 | </verify> |
| 65 | |
| 66 | </testcase> |