xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | multi |
| 5 | </keywords> |
| 6 | </info> |
| 7 | |
| 8 | # Server-side |
| 9 | <reply> |
| 10 | <data> |
| 11 | HTTP/1.1 302 OK |
| 12 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 13 | Content-Length: 6 |
| 14 | Location: /%TESTNUMBER0002 |
| 15 | |
| 16 | -foo- |
| 17 | </data> |
| 18 | <data2> |
| 19 | HTTP/1.1 200 OK |
| 20 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 21 | Content-Length: 11 |
| 22 | |
| 23 | redirected |
| 24 | </data2> |
| 25 | <datacheck> |
| 26 | redirected |
| 27 | redirected |
| 28 | </datacheck> |
| 29 | </reply> |
| 30 | |
| 31 | # Client-side |
| 32 | <client> |
| 33 | <server> |
| 34 | http |
| 35 | </server> |
| 36 | # tool is what to use instead of 'curl' |
| 37 | <tool> |
| 38 | lib%TESTNUMBER |
| 39 | </tool> |
| 40 | |
| 41 | <name> |
| 42 | re-run redirected transfer without setting URL again |
| 43 | </name> |
| 44 | <command> |
| 45 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| 46 | </command> |
| 47 | </client> |
| 48 | |
| 49 | <verify> |
| 50 | <protocol> |
| 51 | GET /%TESTNUMBER HTTP/1.1
|
| 52 | Host: %HOSTIP:%HTTPPORT
|
| 53 | Accept: */*
|
| 54 |
|
| 55 | GET /%TESTNUMBER0002 HTTP/1.1
|
| 56 | Host: %HOSTIP:%HTTPPORT
|
| 57 | Accept: */*
|
| 58 |
|
| 59 | GET /%TESTNUMBER HTTP/1.1
|
| 60 | Host: %HOSTIP:%HTTPPORT
|
| 61 | Accept: */*
|
| 62 |
|
| 63 | GET /%TESTNUMBER0002 HTTP/1.1
|
| 64 | Host: %HOSTIP:%HTTPPORT
|
| 65 | Accept: */*
|
| 66 |
|
| 67 | </protocol> |
| 68 | </verify> |
| 69 | </testcase> |