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 | <data> |
| 13 | HTTP/1.1 200 OK |
| 14 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 15 | Server: test-server/fake |
| 16 | Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT |
| 17 | ETag: "21025-dc7-39462498" |
| 18 | Accept-Ranges: bytes |
| 19 | Content-Length: 6 |
| 20 | Connection: close |
| 21 | Content-Type: text/html |
| 22 | Funny-head: yesyes |
| 23 | |
| 24 | -foo- |
| 25 | </data> |
| 26 | </reply> |
| 27 | |
| 28 | # |
| 29 | # Client-side |
| 30 | <client> |
| 31 | # hyper doesn't support the added crazy header |
| 32 | <features> |
| 33 | debug |
| 34 | !hyper |
| 35 | </features> |
| 36 | <server> |
| 37 | http |
| 38 | </server> |
| 39 | <name> |
| 40 | HTTP GET with split initial request send |
| 41 | </name> |
| 42 | <setenv> |
| 43 | # Oliver Twist |
| 44 | |
| 45 | # make the first send cut off after this amount of data |
| 46 | CURL_SMALLREQSEND=128 |
| 47 | </setenv> |
| 48 | <command> |
| 49 | http://%HOSTIP:%HTTPPORT/012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679/%TESTNUMBER -H "Among other public buildings in a certain town, which for many reasons it will be prudent to refrain from mentioning, and to which I will assign no fictitious name, there is one anciently common to most towns, great or small to wit, a workhouse; and in this workhouse was born; on a day and date which I need not trouble myself to repeat, inasmuch as it can be of no possible consequence to the reader, in this stage of the business at all events; the item of mortality whose name is prefixed to the head of this chapter: 511" |
| 50 | </command> |
| 51 | </client> |
| 52 | |
| 53 | # |
| 54 | # Verify data after the test has been "shot" |
| 55 | <verify> |
| 56 | <protocol> |
| 57 | GET /012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679012345679/%TESTNUMBER HTTP/1.1
|
| 58 | Host: %HOSTIP:%HTTPPORT
|
| 59 | User-Agent: curl/%VERSION
|
| 60 | Accept: */*
|
| 61 | Among other public buildings in a certain town, which for many reasons it will be prudent to refrain from mentioning, and to which I will assign no fictitious name, there is one anciently common to most towns, great or small to wit, a workhouse; and in this workhouse was born; on a day and date which I need not trouble myself to repeat, inasmuch as it can be of no possible consequence to the reader, in this stage of the business at all events; the item of mortality whose name is prefixed to the head of this chapter: 511
|
| 62 |
|
| 63 | </protocol> |
| 64 | </verify> |
| 65 | </testcase> |