Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test155
blob2ec1234a09a84d2885e4d417e943451d9abbb0a2
1 <testcase>
2 # Server-side
3 <reply>
4 <servercmd>
5 auth_required
6 </servercmd>
7 <data>
8 HTTP/1.1 401 NTLM Authorization Required swsclose
9 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
10 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
11 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
12 WWW-Authenticate: NTLM
13 Content-Type: text/html; charset=iso-8859-1
14 Connection: close
16 moo
17 </data>
19 # This is supposed to be returned when the server gets a first
20 # Authorization: NTLM line passed-in from the client
21 <data1001>
22 HTTP/1.1 401 Type-1 received, send back type-2
23 Server: Microsoft-IIS/5.0
24 Content-Length: 34
25 Content-Type: text/html; charset=iso-8859-1
26 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
28 This is not the real page either!
29 </data1001>
31 # This is supposed to be returned when the server gets the second
32 # Authorization: NTLM line passed-in from the client
33 <data1002>
34 HTTP/1.1 200 Type-3 Recevied and all Things are fine swsclose
35 Server: Microsoft-IIS/5.0
36 Content-Type: text/html; charset=iso-8859-1
37 Content-Length: 32
39 Finally, this is the real page!
40 </data1002>
42 <datacheck>
43 HTTP/1.1 401 NTLM Authorization Required swsclose
44 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
45 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
46 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
47 WWW-Authenticate: NTLM
48 Content-Type: text/html; charset=iso-8859-1
49 Connection: close
51 HTTP/1.1 401 Type-1 received, send back type-2
52 Server: Microsoft-IIS/5.0
53 Content-Length: 34
54 Content-Type: text/html; charset=iso-8859-1
55 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
57 HTTP/1.1 200 Type-3 Recevied and all Things are fine swsclose
58 Server: Microsoft-IIS/5.0
59 Content-Type: text/html; charset=iso-8859-1
60 Content-Length: 32
62 Finally, this is the real page!
63 </datacheck>
65 </reply>
67 # Client-side
68 <client>
69 <features>
70 NTLM
71 </features>
72 <server>
73 http
74 </server>
75  <name>
76 HTTP PUT with --anyauth authorization (picking NTLM)
77  </name>
78  <command>
79 http://%HOSTIP:%HTTPPORT/155 -T log/put155 -u testuser:testpass --anyauth
80 </command>
81 <file name="log/put155">
82 This is data we upload with PUT
83 a second line
84 line three
85 four is the number of lines
86 </file>
87 </client>
89 # Verify data after the test has been "shot"
90 <verify>
91 <strip>
92 ^User-Agent:.*
93 </strip>
94 # We strip off a large chunk of the type-2 NTLM message since it depends on
95 # the local host name and thus differs on different machines!
96 <strippart>
97 s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
98 </strippart>
99 <protocol>
100 PUT /155 HTTP/1.1
101 Host: %HOSTIP:%HTTPPORT
102 Accept: */*
103 Content-Length: 85
104 Expect: 100-continue
106 PUT /155 HTTP/1.1
107 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
108 Host: %HOSTIP:%HTTPPORT
109 Accept: */*
110 Content-Length: 0
111 Expect: 100-continue
113 PUT /155 HTTP/1.1
114 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
115 User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3
116 Host: %HOSTIP:%HTTPPORT
117 Accept: */*
118 Content-Length: 85
119 Expect: 100-continue
121 This is data we upload with PUT
122 a second line
123 line three
124 four is the number of lines
125 </protocol>
126 </verify>
127 </testcase>