xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | curl_easy_header |
| 5 | CONNECT |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # Server-side |
| 10 | <reply> |
| 11 | <data nocheck="yes"> |
| 12 | HTTP/1.1 200 funky chunky!
|
| 13 | Server: fakeit/0.9 fakeitbad/1.0
|
| 14 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 15 | Transfer-Encoding: chunked
|
| 16 | Trailer: server
|
| 17 | Connection: mooo
|
| 18 |
|
| 19 | 40
|
| 20 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
| 21 | 30
|
| 22 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
| 23 | 21;heresatest=moooo
|
| 24 | cccccccccccccccccccccccccccccccc |
| 25 |
|
| 26 | 0
|
| 27 | Server: sent-as-trailer
|
| 28 |
|
| 29 | </data> |
| 30 | </reply> |
| 31 | |
| 32 | # Client-side |
| 33 | <client> |
| 34 | <features> |
| 35 | http |
| 36 | headers-api |
| 37 | </features> |
| 38 | <server> |
| 39 | http |
| 40 | </server> |
| 41 | |
| 42 | <name> |
| 43 | curl_easy_header with trailers |
| 44 | </name> |
| 45 | <tool> |
| 46 | lib1940 |
| 47 | </tool> |
| 48 | |
| 49 | <command> |
| 50 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| 51 | </command> |
| 52 | </client> |
| 53 | |
| 54 | # Verify data after the test has been "shot" |
| 55 | <verify> |
| 56 | <stdout> |
| 57 | Date == Thu, 09 Nov 2010 14:49:00 GMT |
| 58 | Server == fakeit/0.9 fakeitbad/1.0 |
| 59 | Server == sent-as-trailer |
| 60 | </stdout> |
| 61 | </verify> |
| 62 | </testcase> |