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