lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | </keywords> |
| 7 | </info> |
| 8 | # |
| 9 | # Server-side |
| 10 | <reply> |
| 11 | <data> |
| 12 | HTTP/1.1 503 OK swsbounce |
| 13 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 14 | Content-Length: 21 |
| 15 | |
| 16 | server not available |
| 17 | </data> |
| 18 | <data1> |
| 19 | HTTP/1.1 200 OK |
| 20 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 21 | Content-Length: 3 |
| 22 | Connection: close |
| 23 | |
| 24 | ok |
| 25 | </data1> |
| 26 | |
| 27 | <datacheck> |
| 28 | HTTP/1.1 200 OK |
| 29 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 30 | Content-Length: 3 |
| 31 | Connection: close |
| 32 | |
| 33 | ok |
| 34 | </datacheck> |
| 35 | |
| 36 | </reply> |
| 37 | |
| 38 | # |
| 39 | # Client-side |
| 40 | <client> |
| 41 | <server> |
| 42 | http |
| 43 | </server> |
| 44 | <name> |
| 45 | HTTP GET --retry on 503 error with output to file |
| 46 | </name> |
| 47 | <command> |
| 48 | http://%HOSTIP:%HTTPPORT/198 --retry 1000 |
| 49 | </command> |
| 50 | </client> |
| 51 | |
| 52 | # |
| 53 | # Verify data after the test has been "shot" |
| 54 | <verify> |
| 55 | <strip> |
| 56 | ^User-Agent:.* |
| 57 | </strip> |
| 58 | <protocol> |
| 59 | GET /198 HTTP/1.1
|
| 60 | Host: %HOSTIP:%HTTPPORT
|
| 61 | Accept: */*
|
| 62 |
|
| 63 | GET /198 HTTP/1.1
|
| 64 | Host: %HOSTIP:%HTTPPORT
|
| 65 | Accept: */*
|
| 66 |
|
| 67 | </protocol> |
| 68 | |
| 69 | </verify> |
| 70 | </testcase> |