summaryrefslogtreecommitdiff
path: root/tests/data/test75
blob: 115963dfa9b16ff7efab4b8f600eedfe75fd971a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<testcase>
<info>
<keywords>
HTTP
HTTP GET
globbing
FAILURE
</keywords>
</info>
#
# Server-side
<reply>
</reply>

#
# Client-side
<client>
<server>
none
</server>
<features>
http
</features>
 <name>
HTTP, urlglob retrieval with bad range
 </name>
 <command option="no-output">
"http://a-site-never-accessed.example.org/[2-1]" -o "log/weee#1.dump" --stderr -
</command>
# The error message on stdout implicitly depends on the length of the
# URL, so refuse to run if the length is unexpected.
<precheck>
perl %SRCDIR/libtest/test75.pl http://%HOSTIP:%HTTPPORT/ 22
</precheck>
</client>

#
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<errorcode>
3
</errorcode>
<stdout mode="text">
curl: (3) bad range in URL position 47:
http://a-site-never-accessed.example.org/[2-1]
                                              ^
</stdout>
</verify>
</testcase>