Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test519
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 </keywords>
7 </info>
8
9 #
10 # Server-side
11 <reply>
12 <data>
13 HTTP/1.1 200 OK swsbounce\r
14 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
15 Server: test-server/fake\r
16 Content-Length: 8\r
17 \r
18 content
19 </data>
20 <data1>
21 HTTP/1.1 200 OK swsclose\r
22 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
23 Server: test-server/fake\r
24 Content-Length: 9\r
25 \r
26 content2
27 </data1>
28 <datacheck>
29 HTTP/1.1 200 OK swsbounce\r
30 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
31 Server: test-server/fake\r
32 Content-Length: 8\r
33 \r
34 content
35 HTTP/1.1 200 OK swsclose\r
36 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
37 Server: test-server/fake\r
38 Content-Length: 9\r
39 \r
40 content2
41 </datacheck>
42 </reply>
43
44 # Client-side
45 <client>
46 <server>
47 http
48 </server>
49 # tool is what to use instead of 'curl'
50 <tool>
51 lib519
52 </tool>
53
54  <name>
55 GET same URL twice with different users
56  </name>
57  <command>
58 http://%HOSTIP:%HTTPPORT/519
59 </command>
60 </client>
61
62 #
63 # Verify data after the test has been "shot"
64 <verify>
65 <protocol>
66 GET /519 HTTP/1.1\r
67 Authorization: Basic bW9uc3Rlcjp1bmRlcmJlZA==\r
68 Host: %HOSTIP:%HTTPPORT\r
69 Accept: */*\r
70 \r
71 GET /519 HTTP/1.1\r
72 Authorization: Basic YW5vdGhlcm1vbnN0ZXI6aW53YXJkcm9iZQ==\r
73 Host: %HOSTIP:%HTTPPORT\r
74 Accept: */*\r
75 \r
76 </protocol>
77 </verify>
78 </testcase>