Git init
[external/curl.git] / tests / data / test176
1 <testcase>
2 # Server-side
3 <reply>
4 # the first request has NTLM type-1 included, and then the 1001 is returned
5 <data1001>
6 HTTP/1.1 200 beng swsclose swsbounce\r
7 Server: Microsoft-IIS/6.0\r
8 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth\r
9 Content-Type: text/html; charset=iso-8859-1\r
10 \r
11 </data1001>
12
13 # the second request should be auth-less and then this is returned.
14 <data>
15 HTTP/1.1 200 moo swsclose\r
16 Server: Microsoft-IIS/6.0\r
17 Content-Type: text/html; charset=iso-8859-1\r
18 Content-Length: 16
19 \r
20 content for you
21 </data>
22
23 <datacheck>
24 HTTP/1.1 200 beng swsclose swsbounce\r
25 Server: Microsoft-IIS/6.0\r
26 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth\r
27 Content-Type: text/html; charset=iso-8859-1\r
28 \r
29 HTTP/1.1 200 moo swsclose\r
30 Server: Microsoft-IIS/6.0\r
31 Content-Type: text/html; charset=iso-8859-1\r
32 Content-Length: 16
33 \r
34 content for you
35 </datacheck>
36
37 </reply>
38
39 # Client-side
40 <client>
41 <features>
42 NTLM
43 </features>
44 <server>
45 http
46 </server>
47  <name>
48 HTTP POST --ntlm to server not requiring any auth at all
49  </name>
50  <command>
51 http://%HOSTIP:%HTTPPORT/176 -u auser:apasswd --ntlm -d "junkelijunk"
52 </command>
53 </client>
54
55 # Verify data after the test has been "shot"
56 <verify>
57 <strip>
58 ^User-Agent:.*
59 </strip>
60 <protocol nonewline="yes">
61 POST /176 HTTP/1.1\r
62 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
63 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
64 Host: %HOSTIP:%HTTPPORT\r
65 Accept: */*\r
66 Content-Length: 0\r
67 Content-Type: application/x-www-form-urlencoded\r
68 \r
69 POST /176 HTTP/1.1\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: 11\r
74 Content-Type: application/x-www-form-urlencoded\r
75 \r
76 junkelijunk
77 </protocol>
78 </verify>
79 </testcase>