Revert "Update to 7.44.0"
[platform/upstream/curl.git] / tests / data / test1134
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP HEAD
6 -G
7 </keywords>
8 </info>
9 #
10 # Server-side
11 <reply>
12 <servercmd>
13 connection-monitor
14 </servercmd>
15 <data>
16 HTTP/1.1 200 OK
17 Date: Thu, 09 Nov 2010 14:49:00 GMT
18 Content-Length: 10
19
20 contents1
21 </data>
22 <data1>
23 HTTP/1.1 200 OK
24 Date: Thu, 09 Nov 2010 14:49:00 GMT
25 Content-Length: 10
26
27 contents2
28 </data1>
29 </reply>
30
31 #
32 # Client-side
33 <client>
34 <server>
35 http
36 </server>
37  <name>
38 HTTP connection re-use with different credentials
39  </name>
40  <command>
41 http://%HOSTIP:%HTTPPORT/1134 -u user1:password1 --next http://%HOSTIP:%HTTPPORT/11340001 -u 2user:password2
42 </command>
43 </client>
44
45 #
46 # Verify data after the test has been "shot"
47 <verify>
48 <strip>
49 ^User-Agent:.*
50 </strip>
51 <protocol>
52 GET /1134 HTTP/1.1\r
53 Authorization: Basic dXNlcjE6cGFzc3dvcmQx\r
54 Host: %HOSTIP:%HTTPPORT\r
55 Accept: */*\r
56 \r
57 GET /11340001 HTTP/1.1\r
58 Authorization: Basic MnVzZXI6cGFzc3dvcmQy\r
59 Host: %HOSTIP:%HTTPPORT\r
60 Accept: */*\r
61 \r
62 [DISCONNECT]
63 </protocol>
64 </verify>
65 </testcase>