xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | curl_easy_header |
| 5 | </keywords> |
| 6 | </info> |
| 7 | |
| 8 | # Server-side |
| 9 | <reply> |
| 10 | <data nocheck="yes"> |
| 11 | HTTP/1.1 200 OK |
| 12 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 13 | Server: test with trailing space |
| 14 | Content-Type: text/html |
| 15 | Fold: is |
| 16 | folding a |
| 17 | line |
| 18 | Content-Length: 0 |
| 19 | Set-Cookie: onecookie=data; |
| 20 | Set-Cookie: secondcookie=2data; |
| 21 | Set-Cookie: cookie3=data3; |
| 22 | Location: /%TESTNUMBER0002 |
| 23 | |
| 24 | </data> |
| 25 | </reply> |
| 26 | |
| 27 | # Client-side |
| 28 | <client> |
| 29 | <features> |
| 30 | headers-api |
| 31 | </features> |
| 32 | <server> |
| 33 | http |
| 34 | </server> |
| 35 | |
| 36 | <name> |
| 37 | curl_easy_header |
| 38 | </name> |
| 39 | <tool> |
| 40 | lib%TESTNUMBER |
| 41 | </tool> |
| 42 | |
| 43 | <command> |
| 44 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| 45 | </command> |
| 46 | </client> |
| 47 | |
| 48 | # Verify data after the test has been "shot" |
| 49 | <verify> |
| 50 | <stdout> |
| 51 | Date == Thu, 09 Nov 2010 14:49:00 GMT |
| 52 | Server == test with trailing space |
| 53 | Content-Type == text/html |
| 54 | Content-Length == 0 |
| 55 | Location == /%TESTNUMBER0002 |
| 56 | - Set-Cookie == onecookie=data; (0/3) |
| 57 | - Set-Cookie == secondcookie=2data; (1/3) |
| 58 | - Set-Cookie == cookie3=data3; (2/3) |
| 59 | Fold == is folding a line |
| 60 | </stdout> |
| 61 | </verify> |
| 62 | </testcase> |