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