| 1 |
# |
| 2 |
# Server-side |
| 3 |
<reply> |
| 4 |
<data nocheck=1> |
| 5 |
HTTP/1.1 200 OK |
| 6 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 7 |
Content-Length: 8 |
| 8 |
Connection: close |
| 9 |
|
| 10 |
monster |
| 11 |
</data> |
| 12 |
</reply> |
| 13 |
|
| 14 |
# |
| 15 |
# Client-side |
| 16 |
<client> |
| 17 |
<server> |
| 18 |
http |
| 19 |
</server> |
| 20 |
<name> |
| 21 |
HTTP GET -w num_connects with one simple connect |
| 22 |
</name> |
| 23 |
<command> |
| 24 |
http://%HOSTIP:%HTTPPORT/192 -w '%{num_connects}\n' |
| 25 |
</command> |
| 26 |
</client> |
| 27 |
|
| 28 |
# |
| 29 |
# Verify data after the test has been "shot" |
| 30 |
<verify> |
| 31 |
<strip> |
| 32 |
^User-Agent:.* |
| 33 |
</strip> |
| 34 |
<protocol> |
| 35 |
GET /192 HTTP/1.1 |
| 36 |
Host: 127.0.0.1:%HTTPPORT |
| 37 |
Accept: */* |
| 38 |
|
| 39 |
</protocol> |
| 40 |
|
| 41 |
<stdout> |
| 42 |
HTTP/1.1 200 OK |
| 43 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 44 |
Content-Length: 8 |
| 45 |
Connection: close |
| 46 |
|
| 47 |
monster |
| 48 |
1 |
| 49 |
</stdout> |
| 50 |
</verify> |