]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test176
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test176
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 </keywords>
7 </info>
8
9 # Server-side
10 <reply>
11 # the first request has NTLM type-1 included, and then the 1001 is returned
12 <data1001>
13 HTTP/1.1 200 beng swsclose swsbounce\r
14 Server: Microsoft-IIS/6.0\r
15 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth\r
16 Content-Type: text/html; charset=iso-8859-1\r
17 \r
18 </data1001>
19
20 # the second request should be auth-less and then this is returned.
21 <data>
22 HTTP/1.1 200 moo swsclose\r
23 Server: Microsoft-IIS/6.0\r
24 Content-Type: text/html; charset=iso-8859-1\r
25 Content-Length: 16\r
26 \r
27 content for you
28 </data>
29
30 <datacheck>
31 HTTP/1.1 200 beng swsclose swsbounce\r
32 Server: Microsoft-IIS/6.0\r
33 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth\r
34 Content-Type: text/html; charset=iso-8859-1\r
35 \r
36 HTTP/1.1 200 moo swsclose\r
37 Server: Microsoft-IIS/6.0\r
38 Content-Type: text/html; charset=iso-8859-1\r
39 Content-Length: 16\r
40 \r
41 content for you
42 </datacheck>
43
44 </reply>
45
46 # Client-side
47 <client>
48 <features>
49 NTLM
50 </features>
51 <server>
52 http
53 </server>
54  <name>
55 HTTP POST --ntlm to server not requiring any auth at all
56  </name>
57  <command>
58 http://%HOSTIP:%HTTPPORT/176 -u auser:apasswd --ntlm -d "junkelijunk"
59 </command>
60 </client>
61
62 # Verify data after the test has been "shot"
63 <verify>
64 <strip>
65 ^User-Agent:.*
66 </strip>
67 <protocol nonewline="yes">
68 POST /176 HTTP/1.1\r
69 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
70 User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
71 Host: %HOSTIP:%HTTPPORT\r
72 Accept: */*\r
73 Content-Length: 0\r
74 Content-Type: application/x-www-form-urlencoded\r
75 \r
76 POST /176 HTTP/1.1\r
77 User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
78 Host: %HOSTIP:%HTTPPORT\r
79 Accept: */*\r
80 Content-Length: 11\r
81 Content-Type: application/x-www-form-urlencoded\r
82 \r
83 junkelijunk
84 </protocol>
85 </verify>
86 </testcase>