xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | followlocation |
| 7 | --write-out |
| 8 | </keywords> |
| 9 | </info> |
| 10 | |
| 11 | # |
| 12 | # Server-side |
| 13 | <reply> |
| 14 | <data nocheck="yes"> |
| 15 | HTTP/1.1 302 OK swsbounce swsclose |
| 16 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 17 | Content-Length: 8 |
| 18 | Connection: close |
| 19 | Location: ./%TESTNUMBER |
| 20 | |
| 21 | monster |
| 22 | </data> |
| 23 | <data1 nocheck="yes"> |
| 24 | HTTP/1.1 200 OK |
| 25 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 26 | Content-Length: 8 |
| 27 | Connection: close |
| 28 | |
| 29 | monster |
| 30 | </data1> |
| 31 | |
| 32 | </reply> |
| 33 | |
| 34 | # |
| 35 | # Client-side |
| 36 | <client> |
| 37 | <server> |
| 38 | http |
| 39 | </server> |
| 40 | <name> |
| 41 | HTTP GET -w num_connects with redirected fetch (2 connects) |
| 42 | </name> |
| 43 | <command> |
| 44 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_connects}\n" -L |
| 45 | </command> |
| 46 | </client> |
| 47 | |
| 48 | # |
| 49 | # Verify data after the test has been "shot" |
| 50 | <verify> |
| 51 | <protocol> |
| 52 | GET /%TESTNUMBER HTTP/1.1
|
| 53 | Host: %HOSTIP:%HTTPPORT
|
| 54 | User-Agent: curl/%VERSION
|
| 55 | Accept: */*
|
| 56 |
|
| 57 | GET /%TESTNUMBER HTTP/1.1
|
| 58 | Host: %HOSTIP:%HTTPPORT
|
| 59 | User-Agent: curl/%VERSION
|
| 60 | Accept: */*
|
| 61 |
|
| 62 | </protocol> |
| 63 | |
| 64 | <stdout> |
| 65 | HTTP/1.1 302 OK swsbounce swsclose |
| 66 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 67 | Content-Length: 8 |
| 68 | Connection: close |
| 69 | Location: ./%TESTNUMBER |
| 70 | |
| 71 | HTTP/1.1 200 OK |
| 72 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 73 | Content-Length: 8 |
| 74 | Connection: close |
| 75 | |
| 76 | monster |
| 77 | 2 |
| 78 | </stdout> |
| 79 | |
| 80 | </verify> |
| 81 | </testcase> |