xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | cookies |
| 6 | FLUSH |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data nocheck="yes"> |
| 13 | HTTP/1.1 200 OK |
| 14 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 15 | Server: test-server/fake |
| 16 | Content-Type: text/html |
| 17 | Funny-head: yesyes swsclose |
| 18 | Set-Cookie: foobar=name; |
| 19 | Set-Cookie: secondcookie=present; |
| 20 | |
| 21 | </data> |
| 22 | </reply> |
| 23 | |
| 24 | # Client-side |
| 25 | <client> |
| 26 | <server> |
| 27 | http |
| 28 | </server> |
| 29 | <name> |
| 30 | CURLOPT_COOKIELIST set to "FLUSH" of a shared cookie object |
| 31 | </name> |
| 32 | <tool> |
| 33 | lib%TESTNUMBER |
| 34 | </tool> |
| 35 | <command> |
| 36 | http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER |
| 37 | </command> |
| 38 | </client> |
| 39 | |
| 40 | # Verify data after the test has been "shot" |
| 41 | <verify> |
| 42 | <protocol> |
| 43 | GET /we/want/%TESTNUMBER HTTP/1.1
|
| 44 | Host: %HOSTIP:%HTTPPORT
|
| 45 | Accept: */*
|
| 46 |
|
| 47 | </protocol> |
| 48 | <file name="log/cookies%TESTNUMBER" mode="text"> |
| 49 | # Netscape HTTP Cookie File |
| 50 | # https://curl.se/docs/http-cookies.html |
| 51 | # This file was generated by libcurl! Edit at your own risk. |
| 52 | |
| 53 | %HOSTIP FALSE /we/want/ FALSE 0 secondcookie present |
| 54 | %HOSTIP FALSE /we/want/ FALSE 0 foobar name |
| 55 | </file> |
| 56 | </verify> |
| 57 | </testcase> |