tests: added globbing keyword to URL globbing tests
[platform/upstream/curl.git] / tests / data / test18
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 globbing
7 {} list
8 </keywords>
9 </info>
10 # Server-side
11 <reply>
12 <data nocheck="yes">
13 HTTP/1.1 200 OK\r
14 Funny-head: yesyes\r
15 Content-Length: 4\r
16 \r
17 moo
18 </data>
19 <data2>
20 HTTP/1.1 200 OK\r
21 Funny-head: yesyes\r
22 Content-Length: 4\r
23 \r
24 foo
25 </data2>
26 <data3>
27 HTTP/1.1 200 OK\r
28 Funny-head: yesyes\r
29 Content-Length: 4\r
30 \r
31 hoo
32 </data3>
33 </reply>
34
35 # Client-side
36 <client>
37 <server>
38 http
39 </server>
40  <name>
41 multiple requests using {} in URL
42  </name>
43  <command>
44 "%HOSTIP:%HTTPPORT/{18,180002,180003}"
45 </command>
46 </client>
47
48 # Verify data after the test has been "shot"
49 <verify>
50 <strip>
51 ^User-Agent:.*
52 </strip>
53 <protocol>
54 GET /18 HTTP/1.1\r
55 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
56 Host: %HOSTIP:%HTTPPORT\r
57 Accept: */*\r
58 \r
59 GET /180002 HTTP/1.1\r
60 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
61 Host: %HOSTIP:%HTTPPORT\r
62 Accept: */*\r
63 \r
64 GET /180003 HTTP/1.1\r
65 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
66 Host: %HOSTIP:%HTTPPORT\r
67 Accept: */*\r
68 \r
69 </protocol>
70 <stdout>
71 --_curl_--%HOSTIP:%HTTPPORT/18
72 HTTP/1.1 200 OK\r
73 Funny-head: yesyes\r
74 Content-Length: 4\r
75 \r
76 moo
77 --_curl_--%HOSTIP:%HTTPPORT/180002
78 HTTP/1.1 200 OK\r
79 Funny-head: yesyes\r
80 Content-Length: 4\r
81 \r
82 foo
83 --_curl_--%HOSTIP:%HTTPPORT/180003
84 HTTP/1.1 200 OK\r
85 Funny-head: yesyes\r
86 Content-Length: 4\r
87 \r
88 hoo
89 </stdout>
90 </verify>
91 </testcase>