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