]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test2033
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test2033
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP Basic auth
7 HTTP NTLM auth
8 pipelining
9 </keywords>
10 </info>
11 # Server-side
12 <reply>
13
14 <!-- Basic auth -->
15 <data100>
16 HTTP/1.1 401 Need Basic or NTLM auth
17 Server: Microsoft-IIS/5.0
18 Content-Type: text/html; charset=iso-8859-1
19 Content-Length: 29
20 WWW-Authenticate: NTLM
21 WWW-Authenticate: Basic realm="testrealm"
22
23 This is a bad password page!
24 </data100>
25
26 <!-- NTML auth -->
27 <data200>
28 HTTP/1.1 401 Need Basic or NTLM auth (2)
29 Server: Microsoft-IIS/5.0
30 Content-Type: text/html; charset=iso-8859-1
31 Content-Length: 27
32 WWW-Authenticate: NTLM
33 WWW-Authenticate: Basic realm="testrealm"
34
35 This is not the real page!
36 </data200>
37
38 <data1201>
39 HTTP/1.1 401 NTLM intermediate (2)
40 Server: Microsoft-IIS/5.0
41 Content-Type: text/html; charset=iso-8859-1
42 Content-Length: 33
43 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
44
45 This is still not the real page!
46 </data1201>
47
48 <data1202>
49 HTTP/1.1 200 Things are fine in server land
50 Server: Microsoft-IIS/5.0
51 Content-Type: text/html; charset=iso-8859-1
52 Content-Length: 32
53
54 Finally, this is the real page!
55 </data1202>
56
57 <datacheck>
58 HTTP/1.1 401 Need Basic or NTLM auth
59 Server: Microsoft-IIS/5.0
60 Content-Type: text/html; charset=iso-8859-1
61 Content-Length: 29
62 WWW-Authenticate: NTLM
63 WWW-Authenticate: Basic realm="testrealm"
64
65 This is a bad password page!
66 HTTP/1.1 401 Need Basic or NTLM auth
67 Server: Microsoft-IIS/5.0
68 Content-Type: text/html; charset=iso-8859-1
69 Content-Length: 29
70 WWW-Authenticate: NTLM
71 WWW-Authenticate: Basic realm="testrealm"
72
73 This is a bad password page!
74 HTTP/1.1 401 NTLM intermediate (2)
75 Server: Microsoft-IIS/5.0
76 Content-Type: text/html; charset=iso-8859-1
77 Content-Length: 33
78 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
79
80 HTTP/1.1 200 Things are fine in server land
81 Server: Microsoft-IIS/5.0
82 Content-Type: text/html; charset=iso-8859-1
83 Content-Length: 32
84
85 Finally, this is the real page!
86 </datacheck>
87
88 </reply>
89
90 # Client-side
91 <client>
92 <features>
93 NTLM
94 </features>
95 <server>
96 http
97 </server>
98 <tool>
99 lib2033
100 </tool>
101
102  <name>
103 NTLM connection mapping, pipelining enabled
104  </name>
105  <setenv>
106 # we force our own host name, in order to make the test machine independent
107 CURL_GETHOSTNAME=curlhost
108 # we try to use the LD_PRELOAD hack, if not a debug build
109 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
110  </setenv>
111  <command>
112 http://%HOSTIP:%HTTPPORT/2032
113 </command>
114 <precheck>
115 chkhostname curlhost
116 </precheck>
117 </client>
118
119 # Verify data after the test has been "shot"
120 <verify>
121 <strip>
122 ^User-Agent:.*
123 </strip>
124 <protocol>
125 GET /20320100 HTTP/1.1\r
126 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=\r
127 Host: 127.0.0.1:8990\r
128 Accept: */*\r
129 \r
130 GET /20320100 HTTP/1.1\r
131 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=\r
132 Host: 127.0.0.1:8990\r
133 Accept: */*\r
134 \r
135 GET /20320200 HTTP/1.1\r
136 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
137 Host: 127.0.0.1:8990\r
138 Accept: */*\r
139 \r
140 GET /20320200 HTTP/1.1\r
141 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyY3VybGhvc3Q=\r
142 Host: 127.0.0.1:8990\r
143 Accept: */*\r
144 \r
145 </protocol>
146 </verify>
147 </testcase>