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/0.9 |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | <reply> |
| 11 | <data nocheck="yes"> |
| 12 | HTTP/1.1 999 OK
|
| 13 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 14 | Server: test-server/fake
|
| 15 | Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
| 16 | ETag: "21025-dc7-39462498"
|
| 17 | Accept-Ranges: bytes
|
| 18 | Content-Length: 6
|
| 19 | Connection: close
|
| 20 | Content-Type: text/html
|
| 21 | Funny-head: yesyes
|
| 22 |
|
| 23 | -foo- |
| 24 | </data> |
| 25 | </reply> |
| 26 | |
| 27 | # |
| 28 | # Client-side |
| 29 | <client> |
| 30 | <server> |
| 31 | http |
| 32 | </server> |
| 33 | |
| 34 | <name> |
| 35 | HTTP GET with 999 response code |
| 36 | </name> |
| 37 | <command> |
| 38 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{response_code}' |
| 39 | </command> |
| 40 | </client> |
| 41 | |
| 42 | # |
| 43 | # Verify data after the test has been "shot" |
| 44 | <verify> |
| 45 | <stdout nonewline="yes"> |
| 46 | HTTP/1.1 999 OK
|
| 47 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 48 | Server: test-server/fake
|
| 49 | Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
| 50 | ETag: "21025-dc7-39462498"
|
| 51 | Accept-Ranges: bytes
|
| 52 | Content-Length: 6
|
| 53 | Connection: close
|
| 54 | Content-Type: text/html
|
| 55 | Funny-head: yesyes
|
| 56 |
|
| 57 | -foo- |
| 58 | 999 |
| 59 | </stdout> |
| 60 | <protocol> |
| 61 | GET /%TESTNUMBER HTTP/1.1
|
| 62 | Host: %HOSTIP:%HTTPPORT
|
| 63 | User-Agent: curl/%VERSION
|
| 64 | Accept: */*
|
| 65 |
|
| 66 | </protocol> |
| 67 | </verify> |
| 68 | </testcase> |