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 | # Server-side |
| 12 | <reply> |
| 13 | <data> |
| 14 | HTTP/1.1 200 OK |
| 15 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 16 | Server: test-server/fake |
| 17 | Content-Type: text/html |
| 18 | Content-Length: 4 |
| 19 | Set-Cookie: moo=yes; |
| 20 | |
| 21 | hej |
| 22 | </data> |
| 23 | <data2> |
| 24 | HTTP/1.1 200 OK |
| 25 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 26 | Server: test-server/fake |
| 27 | Content-Type: text/html |
| 28 | Content-Length: 0 |
| 29 | Funny-head: yesyes swsclose |
| 30 | |
| 31 | </data2> |
| 32 | </reply> |
| 33 | |
| 34 | # Client-side |
| 35 | <client> |
| 36 | <server> |
| 37 | http |
| 38 | </server> |
| 39 | <name> |
| 40 | HTTP with cookie using host name 'moo' |
| 41 | </name> |
| 42 | <command> |
| 43 | -x http://%HOSTIP:%HTTPPORT http://moo/we/want/%TESTNUMBER -b none http://moo/we/want/%TESTNUMBER0002 |
| 44 | </command> |
| 45 | <features> |
| 46 | proxy |
| 47 | </features> |
| 48 | </client> |
| 49 | |
| 50 | # Verify data after the test has been "shot" |
| 51 | <verify> |
| 52 | <protocol> |
| 53 | GET http://moo/we/want/%TESTNUMBER HTTP/1.1
|
| 54 | Host: moo
|
| 55 | User-Agent: curl/%VERSION
|
| 56 | Accept: */*
|
| 57 | Proxy-Connection: Keep-Alive
|
| 58 |
|
| 59 | GET http://moo/we/want/%TESTNUMBER0002 HTTP/1.1
|
| 60 | Host: moo
|
| 61 | User-Agent: curl/%VERSION
|
| 62 | Accept: */*
|
| 63 | Proxy-Connection: Keep-Alive
|
| 64 | Cookie: moo=yes
|
| 65 |
|
| 66 | </protocol> |
| 67 | </verify> |
| 68 | </testcase> |