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