xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | # perl -e 'print "swsclose" . "\0" x 200;' | base64 |
| 13 | # 'swsclose' is there to force server to close after send |
| 14 | <data nocheck="yes" base64="yes"> |
| 15 | c3dzY2xvc2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| 16 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| 17 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| 18 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== |
| 19 | </data> |
| 20 | </reply> |
| 21 | |
| 22 | # |
| 23 | # Client-side |
| 24 | <client> |
| 25 | # hyper doesn't support HTTP/0.9 |
| 26 | <features> |
| 27 | !hyper |
| 28 | </features> |
| 29 | <server> |
| 30 | http |
| 31 | </server> |
| 32 | <name> |
| 33 | HTTP/0.9 GET and all zeroes |
| 34 | </name> |
| 35 | <command option="force-output"> |
| 36 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w '%{size_download}\n' --http0.9 |
| 37 | </command> |
| 38 | </client> |
| 39 | |
| 40 | # |
| 41 | # Verify data after the test has been "shot" |
| 42 | <verify> |
| 43 | <protocol> |
| 44 | GET /%TESTNUMBER HTTP/1.1
|
| 45 | Host: %HOSTIP:%HTTPPORT
|
| 46 | User-Agent: curl/%VERSION
|
| 47 | Accept: */*
|
| 48 |
|
| 49 | </protocol> |
| 50 | <stdout mode="text"> |
| 51 | 208 |
| 52 | </stdout> |
| 53 | </verify> |
| 54 | </testcase> |