| 1 |
<testcase> |
| 2 |
<info> |
| 3 |
<keywords> |
| 4 |
HTTP |
| 5 |
HTTP GET |
| 6 |
globbing |
| 7 |
FAILURE |
| 8 |
</keywords> |
| 9 |
</info> |
| 10 |
# |
| 11 |
# Server-side |
| 12 |
<reply> |
| 13 |
</reply> |
| 14 |
|
| 15 |
# |
| 16 |
# Client-side |
| 17 |
<client> |
| 18 |
<server> |
| 19 |
none |
| 20 |
</server> |
| 21 |
<features> |
| 22 |
http |
| 23 |
</features> |
| 24 |
<name> |
| 25 |
HTTP, urlglob retrieval with bad range |
| 26 |
</name> |
| 27 |
<command option="no-output"> |
| 28 |
"http://a-site-never-accessed.example.org/[2-1]" -o "log/weee#1.dump" --stderr - |
| 29 |
</command> |
| 30 |
# The error message on stdout implicitly depends on the length of the |
| 31 |
# URL, so refuse to run if the length is unexpected. |
| 32 |
<precheck> |
| 33 |
perl %SRCDIR/libtest/test75.pl http://%HOSTIP:%HTTPPORT/ 22 |
| 34 |
</precheck> |
| 35 |
</client> |
| 36 |
|
| 37 |
# |
| 38 |
# Verify data after the test has been "shot" |
| 39 |
<verify> |
| 40 |
<strip> |
| 41 |
^User-Agent:.* |
| 42 |
</strip> |
| 43 |
<errorcode> |
| 44 |
3 |
| 45 |
</errorcode> |
| 46 |
<stdout mode="text"> |
| 47 |
curl: (3) bad range in URL position 47: |
| 48 |
http://a-site-never-accessed.example.org/[2-1] |
| 49 |
^ |
| 50 |
</stdout> |
| 51 |
</verify> |
| 52 |
</testcase> |