xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | HTTP proxy |
| 7 | cookies |
| 8 | </keywords> |
| 9 | </info> |
| 10 | |
| 11 | # This test is very similar to 1216, only that it sets the cookies from the |
| 12 | # first site instead of reading from a file |
| 13 | <reply> |
| 14 | <data> |
| 15 | HTTP/1.1 200 OK |
| 16 | Date: Tue, 25 Sep 2001 19:37:44 GMT |
| 17 | Set-Cookie: bug=fixed; domain=.example.fake; |
| 18 | Content-Length: 21
|
| 19 |
|
| 20 | This server says moo |
| 21 | </data> |
| 22 | </reply> |
| 23 | |
| 24 | # Client-side |
| 25 | <client> |
| 26 | <server> |
| 27 | http |
| 28 | </server> |
| 29 | <name> |
| 30 | HTTP cookies and domains with same prefix |
| 31 | </name> |
| 32 | <command> |
| 33 | http://example.fake/c/%TESTNUMBER http://example.fake/c/%TESTNUMBER http://bexample.fake/c/%TESTNUMBER -b nonexisting -x %HOSTIP:%HTTPPORT |
| 34 | </command> |
| 35 | <features> |
| 36 | proxy |
| 37 | </features> |
| 38 | </client> |
| 39 | |
| 40 | # Verify data after the test has been "shot" |
| 41 | <verify> |
| 42 | <protocol> |
| 43 | GET http://example.fake/c/%TESTNUMBER HTTP/1.1
|
| 44 | Host: example.fake
|
| 45 | User-Agent: curl/%VERSION
|
| 46 | Accept: */*
|
| 47 | Proxy-Connection: Keep-Alive
|
| 48 |
|
| 49 | GET http://example.fake/c/%TESTNUMBER HTTP/1.1
|
| 50 | Host: example.fake
|
| 51 | User-Agent: curl/%VERSION
|
| 52 | Accept: */*
|
| 53 | Proxy-Connection: Keep-Alive
|
| 54 | Cookie: bug=fixed
|
| 55 |
|
| 56 | GET http://bexample.fake/c/%TESTNUMBER HTTP/1.1
|
| 57 | Host: bexample.fake
|
| 58 | User-Agent: curl/%VERSION
|
| 59 | Accept: */*
|
| 60 | Proxy-Connection: Keep-Alive
|
| 61 |
|
| 62 | </protocol> |
| 63 | </verify> |
| 64 | </testcase> |