Initial commit of visual studio 9 git build superproject.
[git-build-vc9.git] / curl / tests / data / test176
blobd3b220b8cd4e5b31713e9e59f2c13aab1171cc78
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
11 </data1001>
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
20 content for you
21 </data>
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
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
34 content for you
35 </datacheck>
37 </reply>
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>
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
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
76 junkelijunk
77 </protocol>
78 </verify>
79 </testcase>