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/1.0 |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data nocheck="yes"> |
| 13 | HTTP/1.0 200 OK
|
| 14 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 15 | Content-Length: 9
|
| 16 | Connection: Keep-Alive
|
| 17 |
|
| 18 | surprise |
| 19 | </data> |
| 20 | <data1> |
| 21 | HTTP/1.0 200 OK swsclose
|
| 22 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 23 | Connection: close
|
| 24 |
|
| 25 | surprise2 |
| 26 | </data1> |
| 27 | |
| 28 | <postcmd> |
| 29 | wait 1 |
| 30 | </postcmd> |
| 31 | </reply> |
| 32 | |
| 33 | # Client-side |
| 34 | <client> |
| 35 | <server> |
| 36 | http |
| 37 | </server> |
| 38 | <name> |
| 39 | HTTP downgrade to HTTP/1.0 on second request |
| 40 | </name> |
| 41 | <command> |
| 42 | http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/wantmore/%TESTNUMBER0001 |
| 43 | </command> |
| 44 | </client> |
| 45 | |
| 46 | # Verify data after the test has been "shot" |
| 47 | <verify> |
| 48 | <stdout> |
| 49 | HTTP/1.0 200 OK
|
| 50 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 51 | Content-Length: 9
|
| 52 | Connection: Keep-Alive
|
| 53 |
|
| 54 | surprise |
| 55 | HTTP/1.0 200 OK swsclose
|
| 56 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 57 | Connection: close
|
| 58 |
|
| 59 | surprise2 |
| 60 | </stdout> |
| 61 | |
| 62 | <protocol> |
| 63 | GET /want/%TESTNUMBER HTTP/1.1
|
| 64 | Host: %HOSTIP:%HTTPPORT
|
| 65 | User-Agent: curl/%VERSION
|
| 66 | Accept: */*
|
| 67 |
|
| 68 | GET /wantmore/%TESTNUMBER0001 HTTP/1.0
|
| 69 | Host: %HOSTIP:%HTTPPORT
|
| 70 | User-Agent: curl/%VERSION
|
| 71 | Accept: */*
|
| 72 |
|
| 73 | </protocol> |
| 74 | </verify> |
| 75 | </testcase> |