]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test2028
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test2028
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP Digest auth
7 HTTP NTLM auth
8 </keywords>
9 </info>
10 # Server-side
11 <reply>
12
13 <!-- Alternate the order that Digest and NTLM headers appear in responses to
14 ensure that the order doesn't matter. -->
15
16 <!-- First request has Digest auth, wrong password -->
17 <data100>
18 HTTP/1.1 401 Need Digest or NTLM auth\r
19 Server: Microsoft-IIS/5.0\r
20 Content-Type: text/html; charset=iso-8859-1\r
21 Content-Length: 27\r
22 WWW-Authenticate: NTLM\r
23 WWW-Authenticate: Digest realm="testrealm", nonce="1"\r
24 \r
25 This is not the real page!
26 </data100>
27
28 <data1100>
29 HTTP/1.1 401 Sorry wrong password\r
30 Server: Microsoft-IIS/5.0\r
31 Content-Type: text/html; charset=iso-8859-1\r
32 Content-Length: 29\r
33 WWW-Authenticate: Digest realm="testrealm", nonce="2"\r
34 WWW-Authenticate: NTLM\r
35 \r
36 This is a bad password page!
37 </data1100>
38
39 <!-- Second request has NTLM auth, right password -->
40 <data200>
41 HTTP/1.1 401 Need Digest or NTLM auth (2)\r
42 Server: Microsoft-IIS/5.0\r
43 Content-Type: text/html; charset=iso-8859-1\r
44 Content-Length: 27\r
45 WWW-Authenticate: NTLM\r
46 WWW-Authenticate: Digest realm="testrealm", nonce="3"\r
47 \r
48 This is not the real page!
49 </data200>
50
51 <data1201>
52 HTTP/1.1 401 NTLM intermediate\r
53 Server: Microsoft-IIS/5.0\r
54 Content-Type: text/html; charset=iso-8859-1\r
55 Content-Length: 33\r
56 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=\r
57 \r
58 This is still not the real page!
59 </data1201>
60
61 <data1202>
62 HTTP/1.1 200 Things are fine in server land\r
63 Server: Microsoft-IIS/5.0\r
64 Content-Type: text/html; charset=iso-8859-1\r
65 Content-Length: 32\r
66 \r
67 Finally, this is the real page!
68 </data1202>
69
70 <!-- Third request has Digest auth, wrong password -->
71 <data300>
72 HTTP/1.1 401 Need Digest or NTLM auth (3)\r
73 Server: Microsoft-IIS/5.0\r
74 Content-Type: text/html; charset=iso-8859-1\r
75 Content-Length: 27\r
76 WWW-Authenticate: Digest realm="testrealm", nonce="4"\r
77 WWW-Authenticate: NTLM\r
78 \r
79 This is not the real page!
80 </data300>
81
82 <data1300>
83 HTTP/1.1 401 Sorry wrong password (2)\r
84 Server: Microsoft-IIS/5.0\r
85 Content-Type: text/html; charset=iso-8859-1\r
86 Content-Length: 29\r
87 WWW-Authenticate: NTLM\r
88 WWW-Authenticate: Digest realm="testrealm", nonce="5"\r
89 \r
90 This is a bad password page!
91 </data1300>
92
93 <!-- Fourth request has NTLM auth, wrong password -->
94 <data400>
95 HTTP/1.1 401 Need Digest or NTLM auth (4)\r
96 Server: Microsoft-IIS/5.0\r
97 Content-Type: text/html; charset=iso-8859-1\r
98 Content-Length: 27\r
99 WWW-Authenticate: Digest realm="testrealm", nonce="6"\r
100 WWW-Authenticate: NTLM\r
101 \r
102 This is not the real page!
103 </data400>
104
105 <data1401>
106 HTTP/1.1 401 NTLM intermediate (2)\r
107 Server: Microsoft-IIS/5.0\r
108 Content-Type: text/html; charset=iso-8859-1\r
109 Content-Length: 33\r
110 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=\r
111 \r
112 This is still not the real page!
113 </data1401>
114
115 <data1402>
116 HTTP/1.1 401 Sorry wrong password (3)\r
117 Server: Microsoft-IIS/5.0\r
118 Content-Type: text/html; charset=iso-8859-1\r
119 Content-Length: 29\r
120 WWW-Authenticate: NTLM\r
121 WWW-Authenticate: Digest realm="testrealm", nonce="7"\r
122 \r
123 This is a bad password page!
124 </data1402>
125
126 <!-- Fifth request has NTLM auth, right password -->
127 <data500>
128 HTTP/1.1 401 Need Digest or NTLM auth (5)\r
129 Server: Microsoft-IIS/5.0\r
130 Content-Type: text/html; charset=iso-8859-1\r
131 Content-Length: 27\r
132 WWW-Authenticate: Digest realm="testrealm", nonce="8"\r
133 WWW-Authenticate: NTLM\r
134 \r
135 This is not the real page!
136 </data500>
137
138 <data1501>
139 HTTP/1.1 401 NTLM intermediate (3)\r
140 Server: Microsoft-IIS/5.0\r
141 Content-Type: text/html; charset=iso-8859-1\r
142 Content-Length: 33\r
143 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=\r
144 \r
145 This is still not the real page!
146 </data1501>
147
148 <data1502>
149 HTTP/1.1 200 Things are fine in server land (2)\r
150 Server: Microsoft-IIS/5.0\r
151 Content-Type: text/html; charset=iso-8859-1\r
152 Content-Length: 32\r
153 \r
154 Finally, this is the real page!
155 </data1502>
156
157 <datacheck>
158 HTTP/1.1 401 Need Digest or NTLM auth\r
159 Server: Microsoft-IIS/5.0\r
160 Content-Type: text/html; charset=iso-8859-1\r
161 Content-Length: 27\r
162 WWW-Authenticate: NTLM\r
163 WWW-Authenticate: Digest realm="testrealm", nonce="1"\r
164 \r
165 HTTP/1.1 401 Sorry wrong password\r
166 Server: Microsoft-IIS/5.0\r
167 Content-Type: text/html; charset=iso-8859-1\r
168 Content-Length: 29\r
169 WWW-Authenticate: Digest realm="testrealm", nonce="2"\r
170 WWW-Authenticate: NTLM\r
171 \r
172 This is a bad password page!
173 HTTP/1.1 401 NTLM intermediate\r
174 Server: Microsoft-IIS/5.0\r
175 Content-Type: text/html; charset=iso-8859-1\r
176 Content-Length: 33\r
177 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=\r
178 \r
179 HTTP/1.1 200 Things are fine in server land\r
180 Server: Microsoft-IIS/5.0\r
181 Content-Type: text/html; charset=iso-8859-1\r
182 Content-Length: 32\r
183 \r
184 Finally, this is the real page!
185 HTTP/1.1 401 Need Digest or NTLM auth (3)\r
186 Server: Microsoft-IIS/5.0\r
187 Content-Type: text/html; charset=iso-8859-1\r
188 Content-Length: 27\r
189 WWW-Authenticate: Digest realm="testrealm", nonce="4"\r
190 WWW-Authenticate: NTLM\r
191 \r
192 HTTP/1.1 401 Sorry wrong password (2)\r
193 Server: Microsoft-IIS/5.0\r
194 Content-Type: text/html; charset=iso-8859-1\r
195 Content-Length: 29\r
196 WWW-Authenticate: NTLM\r
197 WWW-Authenticate: Digest realm="testrealm", nonce="5"\r
198 \r
199 This is a bad password page!
200 HTTP/1.1 401 NTLM intermediate (2)\r
201 Server: Microsoft-IIS/5.0\r
202 Content-Type: text/html; charset=iso-8859-1\r
203 Content-Length: 33\r
204 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=\r
205 \r
206 HTTP/1.1 401 Sorry wrong password (3)\r
207 Server: Microsoft-IIS/5.0\r
208 Content-Type: text/html; charset=iso-8859-1\r
209 Content-Length: 29\r
210 WWW-Authenticate: NTLM\r
211 WWW-Authenticate: Digest realm="testrealm", nonce="7"\r
212 \r
213 This is a bad password page!
214 HTTP/1.1 401 NTLM intermediate (3)\r
215 Server: Microsoft-IIS/5.0\r
216 Content-Type: text/html; charset=iso-8859-1\r
217 Content-Length: 33\r
218 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=\r
219 \r
220 HTTP/1.1 200 Things are fine in server land (2)\r
221 Server: Microsoft-IIS/5.0\r
222 Content-Type: text/html; charset=iso-8859-1\r
223 Content-Length: 32\r
224 \r
225 Finally, this is the real page!
226 </datacheck>
227
228 </reply>
229
230 # Client-side
231 <client>
232 <features>
233 NTLM
234 </features>
235 <server>
236 http
237 </server>
238 <tool>
239 libauthretry
240 </tool>
241
242  <name>
243 HTTP authorization retry (Digest switching to NTLM)
244  </name>
245  <setenv>
246 # we force our own host name, in order to make the test machine independent
247 CURL_GETHOSTNAME=curlhost
248 # we try to use the LD_PRELOAD hack, if not a debug build
249 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
250  </setenv>
251  <command>
252 http://%HOSTIP:%HTTPPORT/2028 digest ntlm
253 </command>
254 <precheck>
255 chkhostname curlhost
256 </precheck>
257 </client>
258
259 # Verify data after the test has been "shot"
260 <verify>
261 <strip>
262 ^User-Agent:.*
263 </strip>
264 <protocol>
265 GET /20280100 HTTP/1.1\r
266 Host: %HOSTIP:%HTTPPORT\r
267 Accept: */*\r
268 \r
269 GET /20280100 HTTP/1.1\r
270 Authorization: Digest username="testuser", realm="testrealm", nonce="1", uri="/20280100", response="53c80666f5e3a4a55f92a66aaf0078bb"\r
271 Host: %HOSTIP:%HTTPPORT\r
272 Accept: */*\r
273 \r
274 GET /20280200 HTTP/1.1\r
275 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
276 Host: %HOSTIP:%HTTPPORT\r
277 Accept: */*\r
278 \r
279 GET /20280200 HTTP/1.1\r
280 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyY3VybGhvc3Q=\r
281 Host: %HOSTIP:%HTTPPORT\r
282 Accept: */*\r
283 \r
284 GET /20280300 HTTP/1.1\r
285 Host: %HOSTIP:%HTTPPORT\r
286 Accept: */*\r
287 \r
288 GET /20280300 HTTP/1.1\r
289 Authorization: Digest username="testuser", realm="testrealm", nonce="4", uri="/20280300", response="1aa5d90da9803ca12d04b24e0f19476e"\r
290 Host: %HOSTIP:%HTTPPORT\r
291 Accept: */*\r
292 \r
293 GET /20280400 HTTP/1.1\r
294 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
295 Host: %HOSTIP:%HTTPPORT\r
296 Accept: */*\r
297 \r
298 GET /20280400 HTTP/1.1\r
299 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyY3VybGhvc3Q=\r
300 Host: %HOSTIP:%HTTPPORT\r
301 Accept: */*\r
302 \r
303 GET /20280500 HTTP/1.1\r
304 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
305 Host: %HOSTIP:%HTTPPORT\r
306 Accept: */*\r
307 \r
308 GET /20280500 HTTP/1.1\r
309 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyY3VybGhvc3Q=\r
310 Host: %HOSTIP:%HTTPPORT\r
311 Accept: */*\r
312 \r
313 </protocol>
314 </verify>
315 </testcase>