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 | </keywords> |
| 8 | </info> |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | HTTP/1.1 200 funky chunky! |
| 14 | Server: fakeit/0.9 fakeitbad/1.0 |
| 15 | Transfer-Encoding: chunked |
| 16 | Connection: mooo |
| 17 | |
| 18 | 40
|
| 19 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
| 20 | 30
|
| 21 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
| 22 | 21;heresatest=moooo
|
| 23 | cccccccccccccccccccccccccccccccc |
| 24 |
|
| 25 | 0
|
| 26 |
|
| 27 | </data> |
| 28 | <datacheck> |
| 29 | HTTP/1.1 200 funky chunky! |
| 30 | Server: fakeit/0.9 fakeitbad/1.0 |
| 31 | Transfer-Encoding: chunked |
| 32 | Connection: mooo |
| 33 | |
| 34 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc |
| 35 | </datacheck> |
| 36 | </reply> |
| 37 | |
| 38 | # |
| 39 | # Client-side |
| 40 | <client> |
| 41 | <server> |
| 42 | http |
| 43 | </server> |
| 44 | <name> |
| 45 | HTTP GET with chunked Transfer-Encoding |
| 46 | </name> |
| 47 | <command> |
| 48 | http://%HOSTIP:%HTTPPORT/34 |
| 49 | </command> |
| 50 | </client> |
| 51 | |
| 52 | # |
| 53 | # Verify data after the test has been "shot" |
| 54 | <verify> |
| 55 | <strip> |
| 56 | ^User-Agent:.* |
| 57 | </strip> |
| 58 | <protocol> |
| 59 | GET /34 HTTP/1.1
|
| 60 | Host: %HOSTIP:%HTTPPORT
|
| 61 | Accept: */*
|
| 62 |
|
| 63 | </protocol> |
| 64 | </verify> |
| 65 | |
| 66 | </testcase> |