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