| 1 |
<testcase> |
| 2 |
<info> |
| 3 |
<keywords> |
| 4 |
HTTP |
| 5 |
HTTP GET |
| 6 |
</keywords> |
| 7 |
</info> |
| 8 |
|
| 9 |
# |
| 10 |
<reply> |
| 11 |
<data nocheck="yes"> |
| 12 |
HTTP/1.1 200 OK |
| 13 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 14 |
Server: test-server/fake |
| 15 |
Content-Length: 0 |
| 16 |
Connection: close |
| 17 |
Content-Type: text/html |
| 18 |
|
| 19 |
</data> |
| 20 |
</reply> |
| 21 |
|
| 22 |
# |
| 23 |
# Client-side |
| 24 |
<client> |
| 25 |
<server> |
| 26 |
http |
| 27 |
file |
| 28 |
</server> |
| 29 |
<name> |
| 30 |
HTTP GET -o fname without Content-Disposition (empty file) |
| 31 |
</name> |
| 32 |
<command option="no-output,no-include"> |
| 33 |
http://%HOSTIP:%HTTPPORT/1423 -o log/outfile1423 file://%PWD/log/outfile1423 |
| 34 |
</command> |
| 35 |
<postcheck> |
| 36 |
perl %SRCDIR/libtest/notexists.pl log/1423 |
| 37 |
</postcheck> |
| 38 |
</client> |
| 39 |
|
| 40 |
# |
| 41 |
# Verify data after the test has been "shot" |
| 42 |
<verify> |
| 43 |
<strip> |
| 44 |
^User-Agent:.* |
| 45 |
</strip> |
| 46 |
<protocol> |
| 47 |
GET /1423 HTTP/1.1 |
| 48 |
Host: %HOSTIP:%HTTPPORT |
| 49 |
Accept: */* |
| 50 |
|
| 51 |
</protocol> |
| 52 |
|
| 53 |
<file1 name="log/outfile1423"> |
| 54 |
</file1> |
| 55 |
|
| 56 |
</verify> |
| 57 |
</testcase> |